Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Since a callback does not dispose of the dialog (that's the whole idea), the HIDE button now first initiates WinHide to hide the dialog window, WaitForKey (END) and when the END key is pressed it does a WinActivate to bring the dialog window back up.
Everything works as expected in both scripts. However, the problem now is that the callback script pushes CPU usage way up while it sits and waits for the END key to be pressed. It happens in either debug mode or when compiled.
Here is a short sample of the problem. The first WaitForKey is outside the UDS and behaves as expected. Once inside the UDS is when the problem happens. Can you explain what is going on? Any way out of it?
Windows XP, SP1
Winbatch 2005A
You might get (maybe) better results if you disable the dialog with DialogProcOptions 1000 before the wait for key then enable the dialog afterwards.
Still its a naughty thing to do. DialogCallbacks are supposed to return as quickly as possible, the penalty being is that they burn hordes of cpu time.
Article ID: W16925
File Created: 2007:07:03:14:27:06
Last Updated: 2007:07:03:14:27:06