mba8490 Posted November 6, 2007 Report Share Posted November 6, 2007 Is there any way to do this: I have a program running that has a pause button. I want it to hit pause at a certain time that the log box on the side says a certain string of words. Is there any way to do this? Also on the top blue bar of the program window it will say the same thing. Then I want it to left click pause. I already have the mouse move numbers in and the left click I just need to know how can I tell it to click at a certain time...The log and blue bar are changing all the time. Quote Link to comment Share on other sites More sharing options...
terrypin Posted November 7, 2007 Report Share Posted November 7, 2007 Is there any way to do this: I have a program running that has a pause button. I want it to hit pause at a certain time that the log box on the side says a certain string of words. Is there any way to do this? Also on the top blue bar of the program window it will say the same thing. Then I want it to left click pause. I already have the mouse move numbers in and the left click I just need to know how can I tell it to click at a certain time...The log and blue bar are changing all the time. It should be straightforward if you can first somehow get the text contents of the 'log box on the side' into a variable. You could then test that against your 'certain string of words'. If they were equal you would take the next step of left-clicking the Pause button. Otherwise you would loop around until the appropriate time came to test it again. But it's difficult to make any helpful suggestions about how to achieve that initial capture without knowing the program and how you are using it. One method I use in broadly similar circumstances is to 1. Move the mouse to inside the log box 2. Select all the text (use Home, then Shift+End) 3. Copy it to clipboard If that fails, one more complex alternative you could try (although I've never had success with it myself!) is to try the Windows Controls. Read it up in help (enter 'Controls' in Search.) -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.