Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timed Function
#1
Is there a way to run a function/macro repeated for a number of minutes? I found "rep" command but you have to use a number instead of time.
#2
Use function GetTickCount. It returns number of milliseconds since Windows startup.

This macro runs for 5 seconds:

Code:
Copy      Help
int nSeconds=5
int t=GetTickCount
int i
rep
,if(GetTickCount>t+(nSeconds*1000)) break
,i+1
out i
#3
This is close to what I am looking for and will try to adapt it.

Thank You Tongue


Forum Jump:


Users browsing this thread: 1 Guest(s)