PDA

View Full Version : getting the same button to do 2 diff things in SAME program



dainabyrne
December 17th, 2002, 03:41 PM
what im trying to do is get it so that in PowerDVD i press one button to pause, and the same button to play again

any help?

thanks!

dainabyrne
December 17th, 2002, 04:49 PM
the same idea is my wanting to ahve the same button to my monitor on and off

PLEASE help, or point me to where i can learn how to do this!

thanks heaps guys!!

daina

drobertson
December 17th, 2002, 05:52 PM
Have you looked here (hope this URL works!):

http://www.girder.nl/help/girderhelp/states.php


I personally have moved away from having one button doing two things based on a state as it makes it much harder to write IR macros (think only one code for power instead of one code for power-on/one for power-off).

Also, in PowerDVD doesn't the pause command resume playing if it is already paused?

David.

dainabyrne
December 17th, 2002, 05:57 PM
i have absolutely NO idea what states are, even after reading that help file! Is it really as complicated as all this?

and no- power dvd has one play and one pause button, pressing pause twice doesn't make it play again, you need to press play - i got this idea from using uICE for a little bit and found it to be really handy for this - and girder being as powerful as it is, thought it should be able to do it

thank anywho

daina

Ron
December 17th, 2002, 10:40 PM
And Girder can, you just need to learn about states. It's not that hard.

dainabyrne
December 17th, 2002, 10:42 PM
well the help file on here REALLY didn't help! is there anything else out there that gives a step-by-step example

im a bit of a slow learner =)

daina

LiteBright
December 18th, 2002, 07:54 AM
Kind of a tip or trick for multiple press of one key to invoke a command. 8)

I needed one press of the POWER button to close apps and two presses of it to suspend my machine. It was important to me that the two presses have to occur with-in on second of one another. I didn't want the machine going into standby unless I push POWER twice very quickly.

[1] When I press the POWER button, a girder command runs a batch file called createfile.bat:

type >> dummyfile.txt
wait 1
del dummyfile.txt

(wait.com is a DOS utility I found at pcmag.com a while back)
http://www.uwe-sieber.de/files/wait.zip

[2] Also, in the same command, I have girder check for the existence of "dummyfile.txt" (girder tab, "file exists" function). If the file exists, I have girder put the machine into standby.

dainabyrne
December 18th, 2002, 01:11 PM
so the only way i can do what im wanting to do is write a script for it?

i thought giirder could do it itself?

daina

bspachman
December 18th, 2002, 02:16 PM
I'll take a whack at this:

1) Go back & read the states help page again.
2) Think...
3) Read the states page a 3rd time.

Now...you have 2 states. PLAY & PAUSE. You want the first command (PLAY) to be executed when the state=1. You want the second command (PAUSE) to be executed when the state=2.

So...create a multi-command. As its 2 sub-commands, create your PLAY & PAUSE commands. Learn the IR event you want to associate to the multi-command (NOT the sub-commands). Finally adjust the state settings of the sub-commands as above.

Best,
Brad

dainabyrne
December 18th, 2002, 02:49 PM
cheers!

daina

dainabyrne
December 18th, 2002, 02:54 PM
1 question - how do i make a 'multi-command' or is this meant to be a mult-group????

daina

dainabyrne
December 18th, 2002, 03:18 PM
ok - got that one!

but im having real probs now with doing simple stuff like programming 'pause' for powerDVD - i know it must be simple but i just getting the bugger workin

thanks

daina