That way you can keep a local variable in the message pump.
Here's how I do it:
Code:
Select Case CbMsg Case %WM_INITDIALOG SetTimer CbHndl, %HACKERTIMER, 30000, ByVal %NULL 'Anti-Hack every 30 seconds Case %WM_TIMER Select Case CbWparam Case %HACKERTIMER g_Result = HackerScan End Select Case %WM_DESTROY Killtimer cbhndl, %HACKERTIMER
So, maybe use a Static variable to count how many times the timer went off and then kill it after x amount of times or something creative like that......
Scott
------------------
Scott
Leave a comment: