Timer Question

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
srhamy
Newbie
Posts: 9
Joined: Sun Nov 26, 2006 12:38 am

Timer Question

Post by srhamy » Fri Jan 06, 2017 2:54 am

Why would the conditional nver be true below? Looks like it should via outout the lower Message

Code: Select all

Let>PollingTime=3
Timer>PriorTime
Label>Loop
Timer>CurrentTime
Let>ElapsedTime={(%CurrentTime%-%PriorTime%)/1000}
If>ElapsedTime>=PollingTime
  MessageModal>Why does this never fire?
Endif
wait>0.05
Message>{%ElapsedTime%>=%PollingTime%}
Goto>Loop
Scott Rhamy

User avatar
Djek
Pro Scripter
Posts: 148
Joined: Sat Feb 05, 2005 11:35 pm
Location: Holland
Contact:

Re: Timer Question

Post by Djek » Fri Jan 06, 2017 8:48 am

hi,

just change
If>ElapsedTime>=PollingTime
into
If>ElapsedTime>PollingTime


look up in the Help
Simple Expressions

Simple expressions can contain only two parts separated by one of the following operators:

= Equals
> Greater than
< Less than
<> Not Equal

if youre not sure what happens, try to use the F8 button, to step trough youre script

kind regards,
Djek

srhamy
Newbie
Posts: 9
Joined: Sun Nov 26, 2006 12:38 am

Re: Timer Question

Post by srhamy » Fri Jan 06, 2017 11:49 am

Worked perfect thanks.
Scott Rhamy

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