ConsultingJoe Posted September 22, 2006 Share 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 [center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center] Link to comment Share on other sites More sharing options...
Skruge Posted September 22, 2006 Share 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] Link to comment Share on other sites More sharing options...
ConsultingJoe Posted September 22, 2006 Author Share 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 [center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center] Link to comment Share on other sites More sharing options...
Skruge Posted September 22, 2006 Share 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] Link to comment Share on other sites More sharing options...
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