06-02-2006, 06:55 AM
Identical declarations in multiple places is not error, but better put it in a single place. Somewhere so that the function would be declared before it is called. For example, in function init2 (if init2 does not exist - create), which runs at startup.
The code should have a wait command, or it will consume much CPU time. Also should check whether the window still exists, or IsHungAppWindow will endlessly return 0 checking dead window handle.
The code should have a wait command, or it will consume much CPU time. Also should check whether the window still exists, or IsHungAppWindow will endlessly return 0 checking dead window handle.