PDA

View Full Version : Winamp power toggle



vynce
October 13th, 2002, 12:55 PM
Use the Window Exists function on the Girder tab.

Here is how I did it: Winamp Power Toggle (http://www.vynce.kicks-ass.net/Girder/WinampPowerToggle.gml)

phinsman
October 13th, 2002, 12:55 PM
Hello...

I've got a working method for turning Winamp on and off using states, but I'd like to have Girder actually check and see if Winamp is running for me. This eliminates the minor inconvenience of having to press the power button twice occassionally, like when you use your remote to load Winamp, but close it with a mouse. Then Girder doesn't have the state back at 1, and will actually try and close the window that doesn't exist.

My question is, how do I have Girder check and see if Winamp is actually running? A Sendmessage? Not sure how to do one if the application isn't even running.

Thanks to all.
Dale

phinsman
October 13th, 2002, 12:55 PM
That worked perfectly. I didn't realize the Window Exists was just like an if/then/else.

Thanks very much.
Dale