DECLARE INTEGER FindWindow IN Win32API; >> STRING @lpClass, STRING @lpTitle >>DECLARE INTEGER SetWindowText IN Win32API; >> INTEGER hWnd, STRING @lpStringNext you'll need a timer, with something like the following in the Timer event
LOCAL lctitle, lnhwnd >>* Naturally, you'll need a form property named as below and inititalized >>* to the value of the timeout >>lctitle = "Time remaining " + TRANSFORM(ThisForm.nSecondsLeft) >>lnhwnd = FindWindow(0, @lctitle) >>IF lnhwnd > 0 >> ThisForm.nSecondsLeft = ThisForm.nSecondsLeft - 1 >> lctitle = "Time remaining " + TRANSFORM(ThisForm.nSecondsLeft) >> = SetWindowText(lnhwnd, @lctitle) >>ENDIF>