!n 无法实现 ALT+N 的功能; 求帮助
autoit吧
全部回复
仅看楼主
level 2
Run("Notepad.exe")
WinWaitActive("无标题 - 记事本")
Send("this is my first prograss")
WinClose("无标题 - 记事本")
WinWaitActive("记事本","是否将更改保存到 无标题?")
Send("!n")
程序运行结果:
2016年05月19日 01点05分 1
level 6
用controlclick
2016年06月23日 01点06分 2
level 1
N
2016年08月29日 14点08分 3
level 4
到这个界面直接发送N或者S就可以了
2016年09月01日 07点09分 4
level 2
谢谢!
2016年09月02日 07点09分 5
楼主你问题解决了么?
2018年03月07日 09点03分
level 1
我也遇到这个问题 怎么解决???
2018年01月31日 11点01分 6
现在还在用autoit吗
2019年02月13日 06点02分
level 1
我怎么写都不起作用,发送其他的例如!a就有效
2018年03月07日 09点03分 7
level 3
我也是这个问题
2018年05月05日 07点05分 9
level 5
2楼正解
2018年06月13日 11点06分 10
level 1

WinWaitActive("记事本","是否将更改保存到 无标题?")
改成
WinWaitActive("记事本","保存")
就可以了
2018年10月30日 14点10分 11
level 1
Run("Notepad.exe")
WinWaitActive("无标题 - 记事本")
Send("this is my first prograss")
WinClose("无标题 - 记事本")
WinWaitActive("记事本")
Sleep(200)
Send("!n")
2018年11月06日 06点11分 12
level 1
原因是autoit 无法检测到 "是否将更改保存到 无标题?"的文本,只能检测到按键上附带的文字。

WinWaitActive("记事本","是否将更改保存到 无标题?")
替换成
WinWaitActive("记事本","不保存")
即可
2018年11月25日 12点11分 13
1