【问题标题】:AHK: Automation of dialog boxesAHK:对话框自动化
【发布时间】:2016-05-03 21:08:47
【问题描述】:

如何自动化对话框,有时对话框出现多次,如果对话框自动出现按确定或回车。 有没有办法使用 AHK 脚本自动化对话框?

我使用了以下脚本

while WinActive("Convert Properties")
{
Send, {ENTER}
sleep 600
}

【问题讨论】:

  • 这个问题已经被问过多次了,请尝试搜索。

标签: autohotkey hotkeys


【解决方案1】:

确保使用自动热键安装文件夹中的 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
}

For a more detailed answer click here.

【讨论】:

    猜你喜欢
    • 2015-08-06
    • 2018-07-13
    • 1970-01-01
    • 2013-07-26
    • 2011-02-04
    • 1970-01-01
    • 1970-01-01
    • 2016-04-01
    • 2011-06-16
    相关资源
    最近更新 更多