Hi gurus,
Please help me some ideas on creating a timer in asm program that run a procedure each 5sec interval
any advices are welcome
m
Posted on 2003-08-21 21:08:59 by nvm
sorry ,i can not help ,because i am a begainer,i hope someone can help you.
Posted on 2003-08-21 23:30:22 by tomorrow
in win32asm you can do such

invoke settimer

and at the wndproc you can process WM_TIMER message to handle this
to for the param detail you can look for msdn
hope someone to help you
Posted on 2003-08-21 23:48:17 by lube
Posted on 2003-08-22 00:20:58 by evlncrn8
The GetTickCount api is what your looking for


invoke GetTickCount
mov eax, ADDR buftime1
..........................
..........................
..........................
invoke GetTickCount
mov eax,ADDR buftime2
sub ADDR buftime1, ADDR buftime2

this is how I would write I'm sure others might have a better way of writing it. Hope it helps
Posted on 2003-08-22 20:27:24 by Tweak
you got that backwards -- you'd have to do this:


invoke GetTickCount
mov ADDR buftime1, eax
..........................
..........................
..........................
invoke GetTickCount
mov ADDR buftime2, eax
sub ADDR buftime1, ADDR buftime2


Move eax into those variables
Posted on 2003-08-25 06:36:30 by indulgence