rootx Posted November 8, 2016 Posted November 8, 2016 (edited) When the TAB key is pressed, I wish it was as if I had pressed the button1 in the gui. I have no idea..... THX #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <MsgBoxConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 437, 192, 124) $Button1 = GUICtrlCreateButton("Button1", 216, 168, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### HotKeySet("{TAB}", $Button1) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 MsgBox("","test","test") EndSwitch WEnd Edited November 8, 2016 by rootx
Danyfirex Posted November 8, 2016 Posted November 8, 2016 check GUISetAccelerators in help file. Saludos rootx 1 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
rootx Posted November 8, 2016 Author Posted November 8, 2016 OK... I leave it for others... #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <MsgBoxConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 437, 192, 124) $Button1 = GUICtrlCreateButton("Button1", 216, 168, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Local $AccelKeys[1][2] = [["{TAB}", $Button1]] GUISetAccelerators($AccelKeys) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 MsgBox("","test","test") EndSwitch WEnd
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