Jump to content
Macro Express Forums

Question about clicking pause button in a macro


mba8490

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...