Jump to content

sommahe

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by sommahe

  1. It works fine. Thank you. Do i need to close the thread somehow?
  2. #include <GUIConstantsEx.au3> #include <GUIConstants.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) $Form1 = GUICreate("Testform", 521, 358, 320, 188) GUISetOnEvent($GUI_EVENT_CLOSE, "_Close_main") $Mainmenu = GUICtrlCreateMenu("Main") $M_setwindowpos = GUICtrlCreateMenuItem("Set window Pos", $Mainmenu) GUICtrlSetOnEvent(-1, "M_setwindowpos") $M_close = GUICtrlCreateMenuItem("Quit", $Mainmenu) GUIctrlSetOnEvent(-1, "_Close_main") GUISetState(@SW_SHOW) While 1 Sleep(200) WEnd func M_setwindowpos() MsgBox(4096, "Why am i not showing?", "test") EndFunc func _Close_main() MsgBox(4096, "Why am i not showing?", "test") Exit EndFunc Thanks for the help i am being silly...
  3. Hello Thanks. That was an oversight on my part. The problem with the mainmenuclickevents not being reported / noticed still exists.
  4. my bad i had a spelling error but still there is no functionality. testt.au3
  5. Hello guys, i am not very good at autoit but i used it here and there to help me with small things. I am now standing at an essential problem with GUIOnEventMode 1. I cant pick up clicks on the menuitems? What am i doing wrong? Thanks in advance Francesco ttttetstt.au3
×
×
  • Create New...