Sign in to follow this  
Followers 0
SmegHead

Nooby help - running while away

2 posts in this topic

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 :(

Share this post


Link to post
Share on other sites



what exactly is this script for? what is the real site that you want to get onto?

Share this post


Link to post
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
Sign in to follow this  
Followers 0