Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Adding a Pause between remote commands

  1. #1
    Join Date
    Jan 2004
    Posts
    15

    Default 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?

  2. #2
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    You could use the wait command in between each one. it is under the windows tab
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  3. #3
    Join Date
    Mar 2004
    Posts
    185

    Default 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.

    Any ideas?
    Thanks

    Roger

  4. #4
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Roger,

    You don't need any targetting.

    Can you upload a short gml with what you are doing?

  5. #5
    Join Date
    Mar 2004
    Posts
    185

    Default

    Interesting.

    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.
    Thanks

    Roger

  6. #6
    Join Date
    Mar 2004
    Posts
    185

    Default

    Here is a small GML with what I'm doing:
    Attached Files Attached Files
    Thanks

    Roger

  7. #7
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Roger,

    Look at the attached example. I think girder is finding another mainlobby window or something...
    Attached Files Attached Files

  8. #8
    Join Date
    Mar 2004
    Posts
    185

    Default

    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.
    Thanks

    Roger

  9. #9
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Wait, only waits until the window is found. The delay is a timeout, ie. max time to wait for the window to appear.

  10. #10
    Join Date
    Mar 2004
    Posts
    185

    Default

    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.
    Thanks

    Roger

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •