Jump to content
Macro Express Forums

Copying A Macro Until Key Is Pressed, Then Pasting


Bonkak
 Share

Recommended Posts

Is it possible to run a macro that will record text until the middle mouse button is pressed, then paste the text into a different program?

 

May not be too clear, but here's an example of what I'm looking for:

 

1) Run the macro

3) Macro begins to copy word into clipboard

2) Type <INSERT WORD or PHRASE here> in program

3) Click Middle Mouse Button to end copy

4) Macro types the text: "The word or phrase you have chosen to copy is: <INSERT WORD or PHRASE here>"

5) End Macro

 

What I'm mainly interested in doing is being able to type a name that the macro will remember. Once you are done typing the name, the macro will then type a sentence with the name you have just typed.

 

For example, I want a macro that will allow me to enter a name (without bringing up a seperate prompt window) and then use this name in a sentence.

 

So essentially I run the macro, I type in something like "Jon Doe", click the middle mouse button, and will then type the sentence:

"Hello, Jon Doe. How are you doing?"

 

The reason why I want to do this without bringing up a seperate prompt window asking for input from the user is so that I can do this in programs that require me to be in fullscreen (ie: Games). Bringing up a seperate prompt window will minimize the game and show the prompt, which I don't want happening.

 

Thanks in advance,

Bonkak

Link to comment
Share on other sites

Welcome to the group!

 

Offhand I can think of no way to do this within Macro Express because it lacks an INKEY function, which you would need. It may be possible to do it with a script that is controlled by Macro Express, however, it would take some programming.

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

×
×
  • Create New...