piccaso Posted June 17, 2006 Posted June 17, 2006 #include <GUIConstants.au3> GUIRegisterMsg(0x101,"_WM_KEYUP") Func _WM_KEYUP($hWndGUI, $MsgID, $WParam, $LParam) ConsoleWrite($MsgID & @TAB & $WParam & @CR) EndFunc ### Koda GUI section start ### Global $Form1 = GUICreate("AForm1", 623, 449, 193, 126) ;GUICtrlCreateLabel("ALabel1", 16, 24, 43, 17) GUISetState(@SW_SHOW) ### Koda GUI section end ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd uncomment 'GUICtrlCreateLabel...' and _WM_KEYUP() will not be called (if you press a key) but why? is there another way to assign keys to a function? (and i dont mean global hotkeys ) CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
JoshDB Posted June 18, 2006 Posted June 18, 2006 This may or may not help, but I personally put functions under all of the main code (after whiles. etc.). I picked this up from the AutoIt gurus here; they do it. Maybe there's something more then organization to it? =/ Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite
Holger Posted June 18, 2006 Posted June 18, 2006 After creating the label the WM_KEYUP-messages go directly to a child control which has the focus (in my opinion). At the moment I have no idea how we could this 'makable'... Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
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