Jump to content
Macro Express Forums

Setting Text Variables From Control Contents


Recommended Posts

I haven't used controls in ME very often (mostly because so few applications support them), but I have an app that does, and I am looking to reduce the number of commands in a particular set of macros I'm modifying.

 

Right now it looks something like this:

 

Get Control %SerialNumber%
Mouse click on Control %SerialNumber%
Clipboard Copy
Set Text Variable %Serial% from Clipboard

 

I would like it to look more like this:

 

Get Control %SerialNumber%
Set Text Variable %Serial% from contents of Control %SerialNumber%

 

 

For some reason I seem to remember this (or something like this) as possible, but I can't seem to put my finger on it. Any help, clarification, or even disappointing revelation that I am mistaken would be appreciated.

Link to comment
Share on other sites

You can use the Get Control Text command. It saves the text from a control variable into a text string variable.

 

Get Control Text from %SerialNumber% into %Serial%

Aha! Thanks Kevin. I was looking under Controls and under Set Variables, I just needed to be more thorough in my Variables category search.

 

Thanks a bunch!

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