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
Multiply a user entered value and send.
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 1
- Joined: Thu Sep 15, 2005 8:48 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.
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]
[email protected]