I downloaded Macro Scheduler for evaluation, and I am having trouble with mathematical expressions.
for this macro....
*****************
//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
Let>X=400
Let>A=X+100
Let>text=A
Message>text
******************
the result was 500 as expected
But for this macro...
******************
//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
Let>X=400
Let>A=(X+100)/2
Let>text=A
Message>text
******************
the message box display the expression itself (displays (X+100)/2) instead of the numerical result.
mathematical expressions
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Hi,
For complex expressions you need to use { } syntax. See Complex Expressions in the help file. Your code should look like this to make it work:
//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
Let>X=400
Let>A={(%X%+100)/2}
Let>text=A
Message>text
For complex expressions you need to use { } syntax. See Complex Expressions in the help file. Your code should look like this to make it work:
//Recorded Events
Let>WW_TIMEOUT=5
CapsOff
Let>X=400
Let>A={(%X%+100)/2}
Let>text=A
Message>text
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?