Advertisement
zombie1942

autoit-hotkey

May 19th, 2024 (edited)
624
0
15 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.22 KB | Source Code | 0 0
  1. #include <Hotkeys.au3>
  2. ; 设置热键 Ctrl+Shift+A
  3. HotKeySet("^+a", "MyHotKey")
  4.  
  5. ; 主循环
  6. While 1
  7.     Sleep(10)
  8. WEnd
  9.  
  10. ; 热键处理函数
  11. Func MyHotKey()
  12.     MsgBox(0, "HotKey", "You pressed Ctrl+Shift+A!")
  13. EndFunc
Tags: AutoIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement