Autoit and notepad
问题 I have an application, wherein I get a "Save As" dialog-box. At times, if a file exists with the same name, then another dialog box comes in, with the same name "Save As". The following is the code, which I wrote but it doesn't work as expected. Global $sTitle = "Save As" WinWait($sTitle) WinWaitActive($sTitle) ControlClick($sTitle, "Save", "[CLASS:Button; TEXT:&Save; INSTANCE:2]") ControlSetText($sTitle, "", "CLASS:Button; INSTANCE:2]", $file_name) SendKeepActive($sTitle) Send("{ENTER}")