koden Posted January 2, 2006 Report Share Posted January 2, 2006 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 Quote Link to comment Share on other sites More sharing options...
joe Posted January 2, 2006 Report Share Posted January 2, 2006 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. Quote Link to comment Share on other sites More sharing options...
koden Posted January 3, 2006 Author Report Share Posted January 3, 2006 I would like the macro to stop the repeat loop when any window with "Request" in the title ARE open. But i'm not sure how to place the IF thing and which IF thing i need??? Quote Link to comment Share on other sites More sharing options...
kevin Posted January 4, 2006 Report Share Posted January 4, 2006 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 Quote Link to comment Share on other sites More sharing options...
koden Posted January 5, 2006 Author Report Share Posted January 5, 2006 I have put in the first lines of my macro: Macro playback speed Repeat prompt start IF window title request is running macro stop end IF delay 0500 milisec and then the hole macro after this. YES it works....macro does not run... Thanks Quote Link to comment Share on other sites More sharing options...
joe Posted January 5, 2006 Report Share Posted January 5, 2006 You missed the Macro Stop line between the If and End If lines If Window Title "Request" is running Macro Stop End If Quote Link to comment Share on other sites More sharing options...
koden Posted January 5, 2006 Author Report Share Posted January 5, 2006 Joe: Yes I did :-))) 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.