indascrnfx Posted January 12, 2013 Share Posted January 12, 2013 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 12, 2013 Moderators Share Posted January 12, 2013 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
EndFunc Posted January 14, 2013 Share Posted January 14, 2013 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,EricThere 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now