2016-01-27 71 views
-1

如何自動化對話框,有時會出現多次對話框,如果自動出現對話框,請按OK或進入。 有沒有辦法使用AHK腳本自動化對話框?AHK:自動化對話框

我用下面的腳本

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

此問題已被多次詢問和回答,請嘗試搜索。 – Schneyer

回答

1

確保使用從AutoHotkey的窗口間諜程序安裝文件夾來獲取窗口標題。

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