%Var% Rendition

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

%Var% Rendition

Post by armsys » Thu Feb 03, 2011 10:18 am

How to stop MS from "resolving" %Var%?
Refering to the following code, how to cajole "Send>" command to say "%Var%", instead of "123"?

Code: Select all

Let>Var=123
Send>%Var%

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Feb 03, 2011 11:18 am

You could do:

Let>Var=123
Send>{"%" + "Var" + "%"}
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Thu Feb 03, 2011 11:24 am

Marcus,
Thanks for your help. I tried out several combinations such as Send>{"%Var%"} in vain.
My original code is more complicated. I borrow your idea and it still works brilliantly.
Thanks a lot.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts