在提出这个问题之前,我对这个问题做了快速研究,我真的认为它应该起作用。有人可以指出该代码有什么问题吗?我想发送特定的文本到非活动的记事本窗口,但我没有得到任何答复。控件发送到非活动窗口 - 不起作用
SetTitleMatchMode, 2
IfWinNotexist, Untitled - Notepad
Run, Notepad.exe, , min
WinWait, Untitled - Notepad
ControlSend, Edit1, test1, Untitled - Notepad
sleep, 1000
ControlSend, Edit1, test2, Untitled - Notepad
Sleep, 1000
return
谢谢!
的代码是罚款和工作对我来说,不知道为什么它不为你工作。 – Oleg
你使用哪个操作系统版本?我仍然使用Win7,但是我读到,当AHK没有使用管理员权限运行时,Win10经常会出现问题。 –