返回列表 上一主題 發帖

Sendkeys

Sendkeys

各位先進       請教以下存成VBS檔,有時因為開啟網頁速度問題,會發生太早 Sendkeys,導致失敗可否修正案程式,判斷網頁開啟完在再Sendkeys,不要用   Wscript.Sleep 謝謝。


     Dim WshShell
Set WshShell=CreateObject("WScript.Shell")
WshShell.RUN "http://tw.yahoo.com/"
Wscript.Sleep 10000
WshShell.SendKeys"TAIWAN"
WshShell.SendKeys"{enter}"

        靜思自在 : 信心、毅力、勇氣三者具備,則天下沒有做不成的事。
返回列表 上一主題