麻辣家族討論版版's Archiver

y663258 發表於 2011-12-14 11:14

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}"

頁: [1]

麻辣家族討論版版為 麻辣學園 網站成員  由 昱得資訊工作室 © Since 1993 所提供