Jump to content
Sign in to follow this  
piccaso

Label Disabling WM_KEYUP?

Recommended Posts

piccaso

#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 :D )


CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

Share this post


Link to post
Share on other sites
JoshDB

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.