正文AutoIT: WinActivate可以把要操作的窗口提前。IP云V管理员/2022-12-01/7 阅读 12/01提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 If WinExists("[CLASS:Notepad2]") Then Local $hWnd = WinWait("[CLASS:Notepad]", "",) ; Convert the handle to a string. Local $sHWnd = String($hWnd) WinActivate("[CLASS:Notepad]") ;WinWaitActive("[class:Notepad]") Send("Hello") EndIf