Slipk Posted January 11, 2019 Share Posted January 11, 2019 Hello everyone, I have a button , a label on a window and also a variable $key_assigned. What is the simplest form when it's clicked the assign button everything else remain disable until the user press one key. After it's pressed setup the value of $key_assigned the key pressed and set data for $KEY label as "Key : " & $key_assigned. What I want to precise it's if it detects all possible keys, like russian or chinese... ? Thank you for your attention! #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Global $key_assigned = "none" $Form_Main = GUICreate("Simple Assigner", 354, 90, -1, -1) $Button_Assign = GUICtrlCreateButton("Assign key", 16, 16, 91, 25) $KEY = GUICtrlCreateLabel("Key : " & $key_assigned, 16, 48, 316, 17) GUISetState(@SW_SHOW, $Form_Main) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 11, 2019 Moderators Share Posted January 11, 2019 @Slipk What you are asking for would run afoul of the forum rules against KeyLoggers. Please see this post: Please do not ask for help on this subject; it is not something that is going to be supported. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts