【发布时间】:2011-03-29 17:25:43
【问题描述】:
我想知道WinWaitActive 是否可以同时用于WindowWithThisTitle 和WindowWithThatTitle。我正在执行一个命令,可能会有一个窗口告诉我连接失败或出现用户/密码对话框。
还有其他方法吗?
WinWaitActive("Title1", "", 5)
If(WinExists("Title1")) Then
MsgBox(0, "", "Do something")
Else
If(WinExists("Title2")) Then
MsgBox(0, "", "Do something else")
EndIf
EndIf
因为我不想让超时时间超过 15 秒。
【问题讨论】:
-
您可以查看this Autohotkey board 以获取您可以转移的答案。