ConsultingJoe Posted September 22, 2006 Posted September 22, 2006 #include <GUIConstants.au3> Opt( "GUIOnEventMode", 1 ) ; == GUI generated with Koda == $Form1 = GUICreate("AForm1", 622, 448, 192, 125) $prioritymenu = GUICtrlCreateMenu ("&Priority") $priorityitem0 = GUICtrlCreateMenuitem ("Idle/Low",$prioritymenu) GUISetOnEvent($priorityitem0, "changepriority1") GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;;;;;; EndSelect WEnd Exit Func changepriority1() MsgBox(0,0,0) EndFunc Thanks guys, I hope its a simple error on my part Check out ConsultingJoe.com
Skruge Posted September 22, 2006 Posted September 22, 2006 Try GuiCtrlSetOnEvent().Also, don't use GuiGetMsg() with event mode. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]
ConsultingJoe Posted September 22, 2006 Author Posted September 22, 2006 Try GuiCtrlSetOnEvent().Also, don't use GuiGetMsg() with event mode.OMG, thank you so much, and yes I know about the guigetmsg(), I was just trying to get the GuiCtrlSetOnEvent() to work. THANKS A LOT Check out ConsultingJoe.com
Skruge Posted September 22, 2006 Posted September 22, 2006 OMG, thank you so much, and yes I know about the guigetmsg(), I was just trying to get the GuiCtrlSetOnEvent() to work. THANKS A LOTAlways glad to help. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now