Jump to content
Macro Express Forums

Help With Variables Needed


Recommended Posts

Welcome to the group!


One option is to use the text Type command. Let's say you saved the user's input to string T1 using the command Variable Set String %T1% from Prompt. Now you just need to activate the other program, move to the text box and then enter the text into it using the Text Type: %T1% command.

Link to comment
Share on other sites

Thanks for the welcome and for the help. That should help out a fair bit.


So the text type: %T1% enters the data stored in the variable T1.

Is there anyway I could set a limit on it, for example:

the prompt appears;

user types in value;

prompt doesnt appear the next time I use the macro;

after the macro is used ten times it asks for a new value;


Is that possible to do with a macro? or does that go beyond its capabilities?

Link to comment
Share on other sites

I have a macro that does the first half of that. It attempts to read a value from the registry. If it is not found, then the macro asks the user for it. After the user has entered it once, they do not have to enter it again.


You could take this one step farther by saving the an integer in the registry. Each time the macro runs it could read the value, increment it, and save it back into the registry. Then you could ask for the first value again when this integer reaches 10.

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.

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.

  • Create New...