Jump to content

Auto it script is not running after closing session


Akashrai
 Share

Recommended Posts

Hi,

I have written a script in autoit for automation. It is scheduled and running on server but i have noticed it stops at some points. But when i am taking remote of server and running it runs fine. Is it problem of winActivate() or winWaitActivate() or any other method which i am using, is only run when screen is activated? If this is the may i get list of those methods and alternative of the same. I need alternative of winActivate() and winWaitActivate() methods. Any document or link is welcome. Please help ...       

thick.au3

Edited by Akashrai
Link to comment
Share on other sites

  • Developers

Send() commands will not function in a scheduled program and need to be replaced by controlxxx() commands.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I am not able to fetch id of all GUI components through "auto it info" tool so i have used  send() method. Is there any other way to achieve the same will be helpful for me. And may i get where it is documented that Send() commands will not function in a scheduled program.

And what about  winActivate() or winWaitActivate()  methods. Any alternate?

Edited by Akashrai
Link to comment
Share on other sites

9 hours ago, Akashrai said:

... may i get where it is documented that Send() commands will not function in a scheduled program

I don't think such documentation exists.  There is a blurb in the help file for the function that mentions a couple of scenarios in which Send is unreliable or doesn't work.  Running as a scheduled task isn't one of them; however...I think this issue is more of a imposition of the OS rather than a limitation of the Autoit function.  Specifically in regards to Scheduled Tasks, I believe It has to do with whether or not process are running interactively.  If your script relies on manipulating an interactive GUI it won't be able to when the session/desktop is locked/disconnected.  

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

×
×
  • Create New...