Jump to content

Recommended Posts

Posted

#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
Posted

Try GuiCtrlSetOnEvent().

Also, don't use GuiGetMsg() with event mode.

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Posted

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

Always glad to help. :)

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...