-
Timer API (NO FORM)
I need to uses an api timer, one which will have no interaction with a form. All the code should be at a module level.
So, using a reference to a forms hwnd to hook a timer into will NOT work. I believe that the final answer will amount to using the sleep, but I was hoping someone here might have some info on an api for this.
Thanks in advance
-
I hope this will help
Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
Declare Function KillTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As Long
-
Info.
Just pass the Hwnd parameter of SetTimer as NULL. Check out MSDN for more information.