Skip to content

Instantly share code, notes, and snippets.

@J2TEAM
Created December 26, 2022 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save J2TEAM/c758d197d26e37fefbbc7bea606d2b7c to your computer and use it in GitHub Desktop.
Save J2TEAM/c758d197d26e37fefbbc7bea606d2b7c to your computer and use it in GitHub Desktop.
AutoIt Hotkey Example
#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