MakaPakaTobyHannah Posted April 15, 2011 Report Share Posted April 15, 2011 Is there any way to accomplish the following? Inside a larger macro, at the end of a complex operation, I want to be able to view the results of the modification undertaken by the macro on an open document. If I like the result, I click "Accept," if not, I click "Undo." The "Accept" and "Undo" options become available through an If Message: If Message "Accept result?" Delay: .2 seconds Window Activate: %activeWindow% Goto:end Else Goto:undo End If I want the If Message to stay open until I have perused the entire document specified in %activeWindow%. But in order to examine that document (I need to scroll inside of it using the arrow keys), I always have to ACTIVATE that document first, once the If Message appears. I can do that by clicking on the document, of course, but it would be much more convenient to have the Window activate automatically, so I could immediately proceed to scrolling with the arrow keys. I tried out the approach above, but I see why I wouldn't work, as the macro itself pauses at the If Message, waiting for True or False input; therefore, the embedded Window Activate command doesn't execute when I need it to. Is there a solution to this problem? Thanks! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.