Search the Community
Showing results for tags 'guigetmsg()'.
I read about GUIOnEventMode while making my research and I found out that you can't use Opt("GUIOnEventMode", 1) and $msg = GUIGetMsg() at the same time. So far so good. In my script I am spawning a few child GUIs and only for the main GUI I need interaction with buttons etc. My question now is, is it possible to set those flags specifically for a single GUI? Can I somehow pass the handle to a GUI this option should affect? And for the main GUI I use GuiGetMsg? I hope you can understand what I'm trying to do .. Thanks for your help
Hi everyone, Does anyone know why the ESC button doesn't close my form in the second loop? #include <GUIConstantsEx.au3> GUICreate('test', 600, 400, -1, -1) $BTN = GUICtrlCreateButton("Press", 10, 10, 80, 30) GUISetState(@SW_SHOW) While True Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $BTN ExitLoop EndSwitch WEnd ConsoleWrite("Second Loop" & @CRLF) GUICtrlDelete($BTN) While True Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ;just hear the 'ding' sound if i press ESC... Exit EndS