Re: [AHK-] 偵測視窗是否存在,若沒有則跳過 ifwin …

看板EzHotKey作者 (張昱珩)時間15年前 (2010/03/22 15:52), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
IfWinNotExist, ahk_class MozillaUIWindowClass winwait, ahk_class MozillaUIWindowClass ; 偵測到 firefox 後再繼續 IfWinNotActive, ahk_class MozillaUIWindowClass ; 如果 firefox 不是當前視窗 WinActivate, ahk_class MozillaUIWindowClass ; 則將它設成當前視窗 WinWaitActive, ahk_class MozillaUIWindowClass ; 等 firefox 成為當前視窗再繼續 MouseClick, Left, 147, 129 ※ 引述《logs ( )》之銘言: : WinWait, Firefox, : IfWinNotActive, Firefox, , WinActivate, Firefox, : WinWaitActive, Firefox, : MouseClick, left, 147, 129 : =================================================== : 上面的腳本是用 recoder 錄的 : 黃字是視窗標題 (window title) : 如何改成當該視窗標題不存在時 : 則自動跳過要執行的動作 : MouseClick : 不然會卡住 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.192.91.167 ※ 編輯: IOann 來自: 114.42.74.223 (03/23 13:07) ※ 編輯: IOann 來自: 211.21.127.209 (07/30 20:24)
文章代碼(AID): #1Bfo6t6r (EzHotKey)
文章代碼(AID): #1Bfo6t6r (EzHotKey)