Multiply a user entered value and send.

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
g_houghtaling
Newbie
Posts: 1
Joined: Thu Sep 15, 2005 8:48 pm

Multiply a user entered value and send.

Post by g_houghtaling » Thu Sep 15, 2005 9:17 pm

I am trying to write a macro that will prompt a user to enter a numeric value. I then need to multiply that value and send it to a field. This is what I have so far, but the multiplication is not working.

Thanks

Input>
Press Shift
Press Tab * 5
Release Shift
Press Left
Press Shift
Press Tab
Release Shift
Press Left
Send Character/Text>%Cost% * 3

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Sep 15, 2005 9:43 pm

The Send command will send the string, it won't perform the calculation. Also you have the prompt missing for the Input command. You want:

Input>cost,Enter the cost:
Let>cost=cost*3
..
.. bla bla
..
Send>cost

Also make sure you have a SetFocus line or the Send will land somewhere other than where you expect it to.
MJT Net Support
[email protected]

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