Jump to content

running an AutoIt script


Recommended Posts

I have made several AutoIt scripts - and they are very helpful, however, I can't figure out how to run the scripts when I am not logged in to the computer. Is there a way to run AutoIt scripts when you are not logged in? I have tried to compile the scripts I made and use windows scheduled tasks - but that doesn't work.

Link to comment
Share on other sites

A scheduled task should work fine, unless the script tries to use things not available in that environment, like the desktop or active windows.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

i am using the command prompt. so i assume it would use the desktop or something like that. i didn't know autoit could run without an active window. so how could i have AutoIt do things like copy files from an ftp to a local directory on a windows machine without an active window?

Link to comment
Share on other sites

You can add this to the top of your script:

#AutoIt3Wrapper_Change2CUI=Y

But I'm not sure you even need to do that.

Use task scheduler to call a batch file, and the only line in the batch file is something like this:

CMD /c "C:\Full\Path\YourScript.exe"

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...