Jump to content
Macro Express Forums

user editing a variable


Recommended Posts

I want to give the user a dialog box in which a field contains text that has come from a string variable that already existed in the macro,

the user can edit that text in the dialog, and when the user clicks OK,

the edited text becomes a new variable.


I know how to make one where an initial variable is shown as a prompt, but not how to make one where the user can actually edit the content of the variable.


For example, suppose I had in the original variable "Great Falls Montana" and the user is supposed to add characters to end up with "Great Falls, Montana, USA".


Or, if I can't do this with a variable, could I do it with the clipboard? i.e., the user can edit the clipboard content?





Link to comment
Share on other sites

You can accomplish what you need by setting the value of the variable used in the 'Variable Set String from Prompt' prior to that command. Like this:

// Set variable
Variable Set String %T1% "Great Falls Montana"
// Display content of the variable and allow user to change it
Variable Set String %T1% from Prompt
Text Box Display: Result

A sample macro is attached.


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