Jump to content

Label Disabling WM_KEYUP?


 Share

Recommended Posts

#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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

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