Variable Question- Input in msg box & use later on scrip

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
mdv3k
Newbie
Posts: 2
Joined: Thu Aug 09, 2007 11:49 pm

Variable Question- Input in msg box & use later on scrip

Post by mdv3k » Thu Aug 09, 2007 11:55 pm

Hello everyone,

I have a quick question for you guys.

quick explanation of what the macro will do;
look for files with specific acronyms.

I wanted to build a macro where a message box comes up asking the user to enter the acronym, and then depending on what the user entered, then use it later on in the macro.


I got the macro to work perfectly , but when i try to add a Message<Input box is where i cant really figure out how to tell the macro "whatever the user puts here, then use it later on here"

I do not have the code with me at the moment, but i will really apreciate some help with a very easy example.

Thanks a lot! in advance! :wink:
Martin

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

Post by Marcus Tettmar » Fri Aug 10, 2007 5:49 am

Input>variable,Please enter a value...

..
..
..

MessageModal>User entered: %variable%
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

mdv3k
Newbie
Posts: 2
Joined: Thu Aug 09, 2007 11:49 pm

Post by mdv3k » Fri Aug 10, 2007 6:04 am

mtettmar wrote:Input>variable,Please enter a value...

..
..
..

MessageModal>User entered: %variable%
Hey Mtettmar!

Thanks for replying bro.

What if i want to instert that variable as a form of text?

something like;
Send> COMMAND 0809%variable% ???

I know that doesnt work...

Thanks again in advance!

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

Post by Marcus Tettmar » Fri Aug 10, 2007 6:38 am

Yes, that is fine. It WILL work.

Make sure the correct window is focused (use SetFocus) before attempting to send the text with Send.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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