Jump to content
Akashrai

Auto it script is not running after closing session

Recommended Posts

Akashrai

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

Share this post


Link to post
Share on other sites
Jos

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

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Akashrai

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

Share this post


Link to post
Share on other sites
spudw2k
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.  

  • Like 1

Share this post


Link to post
Share on other sites
Akashrai

Thanks spudw2k. I have tested send() is working fine But I faced problem with  winActivate() or winWaitActivate()  methods . So i need alternative of the same.

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

  • Similar Content

    • mar3011
      By mar3011
      hello, I want to set in the inputbox field random key from the keyboard to which the function will be assigned, for example F4 function start notepad ALT + A function start notepad for one function. Thank you for any help.  
    • JuanFelipe
      By JuanFelipe
      Cambiar a español Hello friends, I need help with a problem I have, I want to know if there is any way to update a GUI already running, that is I have a GUI of a certain size and with a button I would like to enlarge it:
      example: $ form1 = GUICreate ("", 200,100,0,0)   When you press the button, the gui increases its size, and actuates the new size.
    • BogdanNicolescu
      By BogdanNicolescu
      While 1 / / / A whole bunch of codes found in help and here: https://www.autoitscript.com/autoit3/docs/ / / / WEnd OR:

       
      HotKeySet("{ESC}", "Terminate") While 1 MouseClick("Right",674,422) MouseClick("Left",673,447) Sleep(2000) / / / A whole bunch of codes found in help and here: https://www.autoitscript.com/autoit3/docs/ / / / MouseClick("Left",675,339) SLeep(3000) WEnd Func Terminate()     Exit 0 EndFunc  
      Sorry if i should't let this here to be found by newbies like me -.-'
    • santoshM
      By santoshM
      Dear friends i am facing a problem , i have created a window in autoit some time it is moving with the mouse curser even if iam not clicking the window 
    • sumanth1980
      By sumanth1980
      Here i am wrote a simple lines to install basic applications but when i clicked on one application/program to install it was working fine but when i cancel the program in the middle to install another program it was not working. I am not an expert in this but i want a solution for this ... Can any one help me on this....
      ORG-1.au3
×