Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Counter
#1
I have a macro that repeats many times. i would like to have a counter that i can check at 200 and if =200 perform a function and reset counter to zero, and if not true, continue with macro. i woud like this code to be in an IF /ELSE stucture.

I have tried doing this with the ctr command and also have tried it with the time diff function.

can u pls give an example of both.

As far as the time diff. command, how can i reset the starting time to the current time once i satisfied my condition lets say 5 min.

TY for ur support on this issue

BTW Great Tool
#2
as far as a counter goes you can try this.

Code:
Copy      Help
int x
rep
,x+1
,if condition 1=result 1  and x= 200
,,"perform a function"
,,x=0
,else
,do this

this is setup to run forever (no, literally forever (see rep listing in the help doc)) so you may want to change that. let me know if it gets you where you want to be
#3
The example is really difficult to understand...


Forum Jump:


Users browsing this thread: 1 Guest(s)