AussieT Posted February 18, 2009 Report Share Posted February 18, 2009 I have a simple copy and paste macro that copies test from one application into a %T[1]% and %T[2]% variable ad then pastes this text into another application. When I runf the macro with the HotKey it does not activate the notepad window When I use the Test Run (debug) button the macro works fine. I have included a Wait for Window Title line but still the macro does not work. Any ideas? Here is the macro: Window Activate: wordpadWait for Window Title: wordpad Text Type (Simulate Keystrokes): <SHIFT><END> Clipboard Copy Delay: .5 seconds Variable Set String %T[1]% from the clipboard contents Text Type (Simulate Keystrokes): <HOME> Text Type (Simulate Keystrokes): <DOWN ARROW> Text Type (Simulate Keystrokes): <CTRL><SHIFT><DOWN ARROW> Clipboard Copy Delay: .5 seconds Variable Set String %T[2]% from the clipboard contents Text Type (Simulate Keystrokes): <HOME> Text Type (Simulate Keystrokes): <CTRL><SHIFT><DOWN ARROW> Text Type (Simulate Keystrokes): <DOWN ARROW> Delay: .2 seconds Window Activate: Untitled - Notepad Wait for Window Title: Notepad Text Type (Simulate Keystrokes): %T[1]% <ENTER> Delay: .2 seconds Text Type (Simulate Keystrokes): %T[2]% <ENTER> Quote Link to comment Share on other sites More sharing options...
terrypin Posted February 18, 2009 Report Share Posted February 18, 2009 I have a simple copy and paste macro that copies test from one application into a %T[1]% and %T[2]% variable ad then pastes this text into another application. When I runf the macro with the HotKey it does not activate the notepad window When I use the Test Run (debug) button the macro works fine. I have included a Wait for Window Title line but still the macro does not work. Any ideas? Here is the macro: I'd be happy to try it but please post the code so that I don't have to key all those commands in from scratch. -- 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.