简体   繁体   English

如何删除自动热键中分配的热键?

[英]How to delete an assigned hotkey in autohotkey?

How can I delete the assigned hotkey in autohotkey? 如何在自动热键中删除分配的热键? I want to free the keyboard assignment completely so that the hotkeys will be available for other applications in windows. 我想完全释放键盘分配,以便热键可用于Windows中的其他应用程序。 Example: in autohotkey I assign ctrl+L to a function at the start of the program but after 10 seconds I want to release and free those keyboard assignments so that the other application which will be running after 10 seconds will be able to use those hotkeys. 示例:在自动热键中,我在程序启动时将ctrl + L分配给一个函数,但是10秒钟后我想释放并释放这些键盘分配,以便将在10秒钟后运行的其他应用程序能够使用这些热键。 。 Could someone please give an example script? 有人可以提供示例脚本吗?

How to delete an assigned hotkey in autohotkey? 如何删除自动热键中分配的热键?

By using the command made for exactly this: 通过使用完全为此命令

hotkey, ^a, off

Defines F1 behavior based on active window: 根据活动窗口定义F1行为:

SetTitleMatchMode 2     ; Makes #If statements match anywhere in title

#IfWinActive Microsoft Word
  F1:: MsgBox F1 pressed in Word
#IfWinActive Notepad
  F1:: MsgBox F1 pressed in Notepad
#IfWinActive
  F1:: MsgBox F1 pressed elsewhere

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM