看板 EzHotKey 關於我們 聯絡資訊
這兩天由於需要寫出一個大約四小時可以重複執行的東西 在爬文發現了有大大建議可以使用SetTimer取代LOOP的寫法 但執行過後要等四個小時才能夠做第一次執行 不知道是否能做到先執行再等待呢? 執行等待4小時執行等待4小時執行等待4小時..... ----------------------------------------------------------------------------- !0:: GoSub, A #Persistent setTimer, A, 14400000 return A: run C:\Users\Alan\AppData\Local\Google\Chrome\Application\chrome.exe winwait Google - Google 瀏覽器 winactivate send ^b sleep, 1500 mouseclick,l, 81, 82 sleep, 15000 send ^b . .由於中間還有很多行所以暫時先省略,如果需要我馬上補上 . . sleep, 300 WinClose, Facebook 上的 FarmVille - Google 瀏覽器 return return F12:: reload return ----------------------------------------------------------------------------- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.43.18.159 ※ 編輯: ScorAlan 來自: 114.43.18.159 (01/04 11:50)
cog5566:說明書上有說,就那個label自己先跑一次。Gosub A .... 01/04 15:46
感恩^____^ ※ 編輯: ScorAlan 來自: 114.43.18.159 (01/04 20:39)