Lloyd, Steve wrote:
Does anyone know how I can call Win32::GUI::MessageBox and have it close
after a certain number of seconds?
Is this possible?
Not easily. MessageBoxes use their own internal message loop, so your
application doesn't get to see events (including timer ones) while the
message box is displayed. If you really wanted to you could probably
do something with SetWindowsHookEx()
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookfunctions/setwindowshookex.asp
but you'd need to use Win32::API and Win32::API::Callback; it would be
easier to implementing your own Modal Dialog to display the message that
you're currently using MessageBoxes for.
Rob.
--
Robert May
Win32::GUI, a perl extension for native Win32 applications
http://perl-win32-gui.sourceforge.net/