Jump to content
Macro Express Forums

Window Activation Works in Test Run but not HotKey


Recommended Posts

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: wordpad

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

Link to comment
Share on other sites

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

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