Jump to content
Macro Express Forums

How To Use "if Window Running"


koden

Recommended Posts

Hello...

 

1.

I hav a macro that have a repeat function build in.

 

I would like the macro to stop after the first run, if a specified window is running.

 

I have attach the start of my macro to show what I have done, but it does not work.

 

have I done it wrong??

 

2. The window I would like to specified has the name "request xxxxxxx"

xxxxxxx is a dif. number every time.

I surpose that when I specifie the window, I can just write "request" in the box and click in the partial match box ???

test.mxe

Link to comment
Share on other sites

The short answer is yes, your macro will not run. It is unclear as to what you are trying to do. Do you want to exit the repeat loop when any window with "Request" in the title starts running or should it exit only for a specific "Request xxxxxxx" window? Also, the Macro Playback Speed command need only be placed once in a macro, so remove it from the loop and place it at the beginning of you macro.

Link to comment
Share on other sites

Maybe something like this would work:

Repeat Prompt Start (Prompt for repeat count at macro play time)
 If Window Title "Request" is running
   Macro Stop
 End If
 Activate Window: "Session A"
 Text Type: vi
 Delay 0.5 Seconds
Repeat End

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