autohotkey - #IfWinActive / #ifWinExist 在 ahk 中未按预期工作
问题描述
#IfWinActive ahk_class Notepad
^!c::MsgBox You pressed Control+Alt+C in Notepad.
#IfWinActive ahk_class WordPadClass
^!c::MsgBox You pressed Control+Alt+C in WordPad.
#IfWinActive
^!c::MsgBox You pressed Control+Alt+C in a window other than Notepad/WordPad.
按预期工作,但是当我尝试下面的代码时...消息框没有出现
#IfWinActive ahk_class Notepad
!c::MsgBox You pressed Alt+C in Notepad.
#IfWinActive ahk_class WordPadClass
^!c::MsgBox You pressed Control+Alt+C in WordPad.
#IfWinActive
^!c::MsgBox You pressed Control+Alt+C in a window other than Notepad/WordPad.
我只是不知道为什么它不起作用
解决方案
推荐阅读
- java - 我正在尝试以带有分隔空格的特定形式输入
- mysql - SQL Server Reporting Services 未从 SQL 存储过程传递正确的参数
- python - 使用正则表达式拆分项目列表
- android - 如何知道 Speech To Text 何时完成?
- javascript - 你如何追加并让项目向上移动
- go - 包内组织的数据库层
- algorithm - Efficiently finding a path in a matrix whose elements sum to a target number?
- node.js - 无法使用节点 js 从 SFTP 下载大文件
- angular - Reactiv 表单中的自定义验证器不返回 true
- r - 为什么保存 lmer 图在 for 循环中不起作用