A Achu New member Apr 3, 2014 #1 Can someone post an example code with both StartTimer(const TimerName: String; const Interval: Cardinal); and OnTimer (TimerName: String): Boolean; All my efforts went futile. Some example code will be very helpful.
Can someone post an example code with both StartTimer(const TimerName: String; const Interval: Cardinal); and OnTimer (TimerName: String): Boolean; All my efforts went futile. Some example code will be very helpful.
gdgsupport Support Staff member Apr 3, 2014 #2 For instance, paste this code in UserMain script: Code: procedure Click; begin StartTimer("tic1", 1000); end; function OnTimer (TimerName: String): Boolean; begin // Do something Result := False; end;
For instance, paste this code in UserMain script: Code: procedure Click; begin StartTimer("tic1", 1000); end; function OnTimer (TimerName: String): Boolean; begin // Do something Result := False; end;
A Achu New member Apr 3, 2014 #3 MessageBox(“This is a simple message.”, “First Demo”, MB_OK+MB_ICONINFORMATION); I placed this in place of the // Do something; Still this is not working. How can I check whether this OnTimer is called Last edited: Apr 3, 2014
MessageBox(“This is a simple message.”, “First Demo”, MB_OK+MB_ICONINFORMATION); I placed this in place of the // Do something; Still this is not working. How can I check whether this OnTimer is called
gdgsupport Support Staff member Apr 5, 2014 #4 How did you call the procedure (in my sample procedure Click to launch the timer?