Sign in to follow this  
Followers 0
indascrnfx

Running a script when not logged in

3 posts in this topic

Good Evening,

I finally dove into using Autoit, successfully compiled the task (proprietary program), in which I am attempting to automate an otherwise mundane set of steps to perform the 'backup' procedure for this program. At then END of completing the program/exe I wrote (which testing it manually), successfully ran and yielded desirable results. A few forum posts elsewhere shed light that since it was written using keystrokes and mouse clicks, task scheduler on Server 2008/2011 etc, is unable to run it since it is built and intended to run in the context of the user desktop. That is, it was clarified that when the user is gone the screen saver locks the screen. The script also will not run while the user is not logged in. Again, the script runs correctly and as expected manually launching it. BUT, the sole purpose was to write this instruction set so that it could be then turned over to the task scheduler in order to automate the process rather than manually log in and run this every night (tedious and unacceptable). So this is a limitation of this particular code set/keystrokes etc? I'll accept why it does not work, given how it is doing it. It makes perfectly logical sense why it is an issue. My question is. Is there another way, to meet the project goal? another scripting language, something similar or better (although I am positive about what AutoIT can do.)

TIA,

Eric

Share this post


Link to post
Share on other sites



indascrnfx,

Welcome to the AutoIt forum. :)

I have moved your post into a separate thread as it was not really related to the thread into which you had originally placed it. Please feel free to start a new thread if you cannot find a related one - or if the thread which you found has been dormant for some years. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Good Evening,

I finally dove into using Autoit, successfully compiled the task (proprietary program), in which I am attempting to automate an otherwise mundane set of steps to perform the 'backup' procedure for this program. At then END of completing the program/exe I wrote (which testing it manually), successfully ran and yielded desirable results. A few forum posts elsewhere shed light that since it was written using keystrokes and mouse clicks, task scheduler on Server 2008/2011 etc, is unable to run it since it is built and intended to run in the context of the user desktop. That is, it was clarified that when the user is gone the screen saver locks the screen. The script also will not run while the user is not logged in. Again, the script runs correctly and as expected manually launching it. BUT, the sole purpose was to write this instruction set so that it could be then turned over to the task scheduler in order to automate the process rather than manually log in and run this every night (tedious and unacceptable). So this is a limitation of this particular code set/keystrokes etc? I'll accept why it does not work, given how it is doing it. It makes perfectly logical sense why it is an issue. My question is. Is there another way, to meet the project goal? another scripting language, something similar or better (although I am positive about what AutoIT can do.)

TIA,

Eric

There are many things you can do with programs. Not all programs require keystrokes. Some even have CLI's built in. Without any information about the program or what you are trying to do, I don't think anyone can really answer your question, "Is there another way, to meet the project goal?" There needs to be more insight into what you're doing for someone to help you.


EndFuncAutoIt is the shiznit. I love it.

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