everfed Posted March 10, 2008 Share Posted March 10, 2008 Hello All I have an v3 script that runs perfect when I am logged in and running it from the desktop. When I try and run this script thru a scheduled task at night behind the windows screen lock...I get in in the morning, unlock the screen and the script has halted in the middle of the script. This script is controling a gui encryption application, encrypting a file, and sending the file to a user. Any help would be greatly appreciated....Thanks.. Link to comment Share on other sites More sharing options...
spudw2k Posted March 10, 2008 Share Posted March 10, 2008 (edited) I believe anything that requires GUI interaction cannot run if the window isn't accessible (ie. locked desktop). I'd recommend looking for commandline parameters for the Encryption tool. How are you "sending" the file? Edited March 10, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
notta Posted March 10, 2008 Share Posted March 10, 2008 Hello AllI have an v3 script that runs perfect when I am logged in and running it from the desktop. When I try and run this script thru a scheduled task at night behind the windows screen lock...I get in in the morning, unlock the screen and the script has halted in the middle of the script. This script is controling a gui encryption application, encrypting a file, and sending the file to a user.Any help would be greatly appreciated....Thanks..I believe there is an option you have to choose when scheduling a task to run only when logged in or run always. Check the setting for the task. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 10, 2008 Moderators Share Posted March 10, 2008 Hello All I have an v3 script that runs perfect when I am logged in and running it from the desktop. When I try and run this script thru a scheduled task at night behind the windows screen lock...I get in in the morning, unlock the screen and the script has halted in the middle of the script. This script is controling a gui encryption application, encrypting a file, and sending the file to a user. Any help would be greatly appreciated....Thanks..Although some of us have gotten pretty good at reading encrypted posts to find solutions, not many of us are actually mind readers. Typically when posting an issue, you would post the actual code that is failing... However, lets see if I can tune into your brain waves a bit.... [Time lapses] Ok, here's a guess, because, I can't get a strong enough connection. Seems you are hard coding your paths to the files you want to interact with. In other words (an example only):Run("myscript.exe");Telling the script to run from its current file location When maybe you should do:Run('"' & @DesktopDir & 'myscript.exe"');Being specific on the location of the files it has to interact with. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
everfed Posted March 10, 2008 Author Share Posted March 10, 2008 I believe anything that requires GUI interaction cannot run if the window isn't accessible (ie. locked desktop). I'd recommend looking for commandline parameters for the Encryption tool. How are you "sending" the file?Unfortunately this Encryption App. (the preferred one here..abicoder) does not have a commandline interface. I am sending the encrypted file thru a commandline mailer towards the end of the autoit script. Link to comment Share on other sites More sharing options...
everfed Posted March 10, 2008 Author Share Posted March 10, 2008 Although some of us have gotten pretty good at reading encrypted posts to find solutions, not many of us are actually mind readers. Typically when posting an issue, you would post the actual code that is failing... However, lets see if I can tune into your brain waves a bit.... [Time lapses] Ok, here's a guess, because, I can't get a strong enough connection. Seems you are hard coding your paths to the files you want to interact with. In other words (an example only):Run("myscript.exe");Telling the script to run from its current file location When maybe you should do:Run('"' & @DesktopDir & 'myscript.exe"');Being specific on the location of the files it has to interact with. It is not a file location issue because the gui starts up fine and locates the file thru the automated keystrokes to a point but does not finish the automated keystrokes like when logged in.... Attached is the code...thanks..Test_Encrypt.au3 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