I would like to a timer to ALL my windows such that if the user doesn't do anything with any one, the timer kicks in. Basically, if window A calls starts a new window script B and the user does nothing there, I want B to cancel. If they do nothing on A then its timer will kick in and A will close. I tried the following code which works fine for A, but as soon as I select B, return to A, then the timer is no longer in effect. How should I code this ?
again:
DO FOREVER
ERROR = guiaddctl("TIMER 5000")
SAY 'Result from add time ***'ERROR'***'
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN 0
wm_timer:
guisendmsg(, "POST CLOSE")
|