Hey guys,
I was wondering if there is a way to set multiple timers in a proggie? IF so how would I check a different one for a timer message? Any suggestions?
Posted on 2002-08-29 19:27:57 by resistance_is_futile
Instead of relying on messages set the timerproc parameter to whatever function you want to handle that specific timer. Or check the timerid in the WM_TIMER message.
Posted on 2002-08-29 19:42:42 by _js_
how do I check the timer id in the WM_TIMER message?
Posted on 2002-08-29 19:46:03 by resistance_is_futile
You should check win32 api reference for such questions actually.

The WM_TIMER message is posted to the installing thread's message queue when a timer expires. The message is posted by the GetMessage or PeekMessage function.

Syntax
WM_TIMER

WPARAM wParam
LPARAM lParam;

Parameters
wParam
Specifies the timer identifier.
lParam
Pointer to an application-defined callback function that was passed to the SetTimer function when the timer was installed.

Return Value
An application should return zero if it processes this message.
Posted on 2002-08-29 20:06:37 by _js_
yea I did actually look at it for that and I read that exact same article lol but how to I invoke it? Like invoke GetnMessage,hWin etc etc? Or if is .if eax==WM_TIMER,ID ??
Posted on 2002-08-29 20:26:14 by resistance_is_futile
Geesh,

mov eax,uMsg
IF ax==WM_TIMER
mov eax,wParam
.IF eax==TimerID
.ELSEIF eax==TimerID2
.ENDIF

Icz's Tut Numba 26
Posted on 2002-08-29 20:36:15 by JimmyClif