Created
December 26, 2022 07:15
-
-
Save J2TEAM/c758d197d26e37fefbbc7bea606d2b7c to your computer and use it in GitHub Desktop.
AutoIt Hotkey Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cs ---------------------------------------------------------------------------- | |
AutoIt Version: 3.3.14.5 | |
Author: JUNO_OKYO | |
Script Function: | |
Template AutoIt script. | |
#ce ---------------------------------------------------------------------------- | |
; Script Start - Add your code below here | |
HotKeySet("{ESC}", "HotKeyPressed") | |
HotKeySet("{F1}", "HotKeyPressed") | |
HotKeySet("{F2}", "HotKeyPressed") | |
While 1 | |
Sleep(100) | |
WEnd | |
Func HotKeyPressed() | |
Switch @HotKeyPressed | |
Case '{F1}' | |
Send('AA') | |
Case '{F2}' | |
Send('BB') | |
Case '{ESC}' | |
Exit | |
EndSwitch | |
EndFunc ;==>HotKeyPressed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment