November 15th, 2004, 11:25 AM
Adding a Pause between remote commands
I am trying to use Girder and a Tira-2 to select particular stations on RCA DirecTivo box. I am trying to use a multi-Command to accomplish this. For example to switch to FOX NEWS my commands are as follows.
output IR command for 3
output IR command for 6
output IR command for 0
Output the Enter command
It seems that the commands are being generated to fast for the TIVO box to keep up. Is there a way to add some wait time between each IR command. Is this the best way to do it or is there a better way?
November 15th, 2004, 12:46 PM
You could use the wait command in between each one. it is under the windows tab
December 10th, 2004, 10:36 AM
Can't get wait to work??
I am finding that when I put a wait in, it does not do so.
I thought maybe I need to target a window for it to work. So, I target the window of what is loading (I want to do a mouse click on something in tht window when it opens...but to do so I need to wait). It doesn't wait.
So, I targeted explorer (the desktop). Still doesn't wait.
At least, I think tht's what's happening. I do see the command on Girder go right past teh wait command before the new window even gets open.
December 10th, 2004, 10:49 AM
You don't need any targetting.
Can you upload a short gml with what you are doing?
December 10th, 2004, 10:57 AM
Well, now I find that this is happening:
If I set teh sait to say 500, I can see that it waits. But if I set it to 1000, or more, it not only waits, but it never continues on. That seems to be the case based on this:
At 500, I can see it pause, and continue to the next command in girder before the window is finished loading. So, thte next command doesn't work.
When I set it to 1000, the command doesn't seem to work, and when I minimize the window, I see that the highlight is still on the wait command, so I presume that means it has stopped.
I have to say that the next command is my first time to use, so it could be a problem as well, but based on teh fact that the highlight is stopped on the wait, I presume it is not working.
I'll keep experimenting.
If any other thoughts...I apprecate the input.
December 10th, 2004, 11:22 AM
Here is a small GML with what I'm doing:
December 10th, 2004, 01:32 PM
Look at the attached example. I think girder is finding another mainlobby window or something...
December 20th, 2004, 03:53 PM
Thanks for the example.
I may be completely misunderstanding how this is supposed to work. When I download the example and try it, this is what I see:
On the first command, Notepad runs, and there is only the slightest pause (not 5 seconds)...and the OSD comes up, then closes after about 5 seconds. I would expect a 5 second pause before the OSD comes up. In fact, I changed the wait to 20000, and there was no difference in the pause. It's like if there is a command that runs before the wait, the wait is completely ignored.
ON the second example command, Notepad launch is disabled, and it is 5 seconds before the OSD comes up, then 5 seconds before it closes. So, the wait is NOT ignored, but there is no command executing before the wait is reached in the command list.
The first command is what I'm tryin to do, more or less (I'm doing something different from launching Notepad of course), and from what I see, it doesn't work right in the example either.
December 20th, 2004, 06:27 PM
Wait, only waits until the window is found. The delay is a timeout, ie. max time to wait for the window to appear.
December 21st, 2004, 06:24 PM
Oh, interesting. I must have misread the docs. It appeared to me it waited however long you set the wait to.
Now, in fact, I'm not sure if it is possiblyh stuck waiting, or not. I know that what I want it to do after the wait is not working (explicit mouse move, and click)...but that may be a problem I have with that command. Although, if I do it based on bringing a focus to a window that is minimized (as opposed to having to load ML), it works fine.
But, when I go over to Girder after the window loads, the highlight is on the WAIT command, as if it has stopped there. If it had gone on, would the highlight have moved?
This of course makes me think it isn't finding the window after it opens...but again, very same command used if the window is minimized, it finds it and works.