使用 Send() 函數(shù)時,保持窗口激活狀態(tài).
SendKeepActive ( "標(biāo)題" [, "文本"] )
標(biāo)題 | 窗口標(biāo)題. 查閱 標(biāo)題專用定義. 使用空白標(biāo)題可禁用此函數(shù). |
文本 | [可選參數(shù)] 窗口文本. |
成功: | 返回 1. |
失敗: | 返回 0, 窗口不存在. |
Run("notepad.exe")
WinWait("[CLASS:Notepad]")
SendKeepActive("[CLASS:Notepad]")
; 修改活動窗口的暫停時間
For $i = 1 to
10
Sleep(1000)
Send($i
& "呼叫
")
Next
provider with jb51.net (unicode) |