【发布时间】:2016-05-03 21:08:47
【问题描述】:
如何自动化对话框,有时对话框出现多次,如果对话框自动出现按确定或回车。 有没有办法使用 AHK 脚本自动化对话框?
我使用了以下脚本
while WinActive("Convert Properties")
{
Send, {ENTER}
sleep 600
}
【问题讨论】:
-
这个问题已经被问过多次了,请尝试搜索。
标签: autohotkey hotkeys
如何自动化对话框,有时对话框出现多次,如果对话框自动出现按确定或回车。 有没有办法使用 AHK 脚本自动化对话框?
我使用了以下脚本
while WinActive("Convert Properties")
{
Send, {ENTER}
sleep 600
}
【问题讨论】:
标签: autohotkey hotkeys
确保使用自动热键安装文件夹中的 window spy 实用程序获取窗口标题。
windowTitle = Convert Properties
;Call CloseWindow periodically passing the windowTitle as argument:
CloseWindowWithBoundArgument := Func("CloseWindow").bind(windowTitle)
SetTimer, %CloseWindowWithBoundArgument%
;Wait for a window to exist, then close it:
CloseWindow(winTitle) {
WinWait, %winTitle%, %winText% ; wait until the window exists
WinClose, %winTitle%, %winText% ; close it
}
【讨论】: