Sign in to follow this  
Followers 0
Guest Sair

Autoit Script Fails On Win2000 Schedule

5 posts in this topic

My autoscript starts an application, sends keystrokes to the application to perform a repetative administration task, and then ends the application.

If I log on, and run the script (either manually or on a schedule) it works fine. However, this task needs to run every 5 mins at the server console, I cannot leave the server console logged in and if I log out the script starts but then fails to find the correct window title/text (even though the application starts as there's a process shown in task manager).

Any suggestions to 'cure' the problem?

Thanks

Share this post


Link to post
Share on other sites



If you use Windows Task Scheduler, you can have it log in with a specific userID and password. Might be worth exploring :D

HTH

Share this post


Link to post
Share on other sites

If you start a script when the computer is logged off Autoit cant send keystrokes. You have to use controls.

Share this post


Link to post
Share on other sites

Aye, look at the controlsend, controlclick, etc section. You can set it to repeat every 5 min or so with a @min or such and a loop.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

:)

You can use pslist.exe (http://www.sysinternals.com) to see if one process is running or not:

pslist.exe > c:\procs.txt

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