Alexis Posted May 31, 2021 Report Share Posted May 31, 2021 Is it possible to create a variable from a prompt? What i'm trying to do is, when I run the Macro I get prompted for a string, let's say I type in "chrome", then the variable %chrome% gets created and contains the window title of the topmost window. Something like this: <VARIABLE SET STRING Option="\x01" Destination="%prompt%" Mask="FALSE" OnTop="FALSE" Left="Center" Top="Center" Monitor="0"/> <VARIABLE SET STRING Option="\x05" Destination="%%prompt%%"/> When I tried to use the viariable %%prompt%% (which would be %chrome% in this example) I get the variable %%prompt%% is the wrong type error. So, is it even possible that MEX is able to create variables that haven't been specified beforehand? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.