Jump to content

Nooby help - running while away


Recommended Posts

Hi. I have a simple script to start IE, then navigate to a page, enter a user/id, etc.

Everything works fine when I initiate the script manually. I would like it to run using NT scheduler (on Windows 2003) while I am away. The script starts, but never activates the initial window. When I log in, it is stuck there until I click on the Window - at which point the rest of the script executes.

Will this work offline?

Cheers,

Smeg Head

Run("C:\Program Files\Internet Explorer\iexplore.exe")
Sleep(12000)
Opt("WinTitleMatchMode", 2)
WinActivate("Google -")
MouseClick("left", 100, 100, 1)
WinWaitActive("Google -")
Send("!d")
Send("www.crummysite.com")
Send("{ENTER}")
Opt("WinTitleMatchMode", 1)
WinWaitActive("CrummySite - Microsoft Internet Explorer")
Sleep(15000)
WinMove("CrummySite - Microsoft Internet Explorer", "", 100, 100, 1000, 800)
Sleep(3000)
MouseClick("left", 792, 330, 1)

... rest of code runs as I watch :(
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...