Hello!
I am really frustrated on my vbscript and i am hoping AutoIt will be able to help me. Below is my script that i need to run in a TASK SCHEDULER 24 hrs every 5 mins. The code is working but NOT when i run through the task scheduler. Somehow sendkeys would not work when i am not logged-in anymore.
How can i then use AutoIt to replace my sendkeys and will it work on task scheduler? Please help!!!!
Thanks in advance!
dyan24
set WshShell = CreateObject("WScript.Shell")
Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.navigate "http://www.tristategt.org/member/online/graph.cfm"
wscript.sleep 100
objExplorer.Visible=True
wshShell.AppActivate "Tri-State Generation and Transmission Association, Inc."
wscript.sleep 3000
WshShell.SendKeys "username"
WshShell.SendKeys "{tab}"
WshShell.SendKeys "password"
WshShell.SendKeys "{enter}"
do while objExplorer.readystate<>4 : wscript.sleep 50 : loop