JenMaughan Posted November 11, 2015 Share Posted November 11, 2015 (edited) Hi,I have a script that I run at work every 3 hours to help me with my job. In the upcoming weeks I need to have the script run automatically every 3 hours while I deal with my Father, his declining help and preparations for the Funeral while I am out. I'm not sure where to start and don't have a lot of time either. What are my options to make that happen? (I apologize for asking. I'm sure it's somewhere in the forums - searched for a few hours to find the answer but couldn't find it fast enough. Thank you,Jen Edited November 11, 2015 by JenMaughan Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 11, 2015 Moderators Share Posted November 11, 2015 Hi, @JenMaughan, welcome to the forum. If you already have the script done, as it sounds that you do, why not just use the Windows Scheduler and be done with it? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
CrypticKiwi Posted November 11, 2015 Share Posted November 11, 2015 (edited) Alternatively, you can run another script and use _NowTime or timerinit to get current time or create a timer and use an if condition for every 3 hours automation and run it.Check this thread Link Edited November 11, 2015 by CrypticKiwi Link to comment Share on other sites More sharing options...
JenMaughan Posted November 12, 2015 Author Share Posted November 12, 2015 (edited) I started working on using windows scheduler this afternoon. I compiled the script to an exe and tried it out before scheduling, but the pause and stop executing scripts acted really weird in the .exe format. I had a really hard time getting it to stop executing. I usually use the F1 shortcut. Maybe that doesn't transfer? That and the coordinates I used were all off. In one part of the script I have it open my gmail in chrome, click compose, and I have specific text that I have it insert and send. I have no idea what happened and why everything is so very off. (I'm using it on the exact computer that I made it on, so transferring it to a computer with different settings isn't the issue). I'd prefer to use the scheduler. Edited November 12, 2015 by JenMaughan Link to comment Share on other sites More sharing options...
BrewManNH Posted November 12, 2015 Share Posted November 12, 2015 Cool story, but we still have no idea what you're doing so can't help you.Post your script. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
jdelaney Posted November 13, 2015 Share Posted November 13, 2015 (edited) One script here:$iMaxTimer = 1000 * 60 * 60 * 3 ; 3 hours $iTimer = TimerInit() While True ; your script here: ; done with you script here ^ While TimerDiff($iTimer)<$iMaxTimer Sleep(1000) WEnd $iTimer = TimerInit() WEnd Edited November 13, 2015 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
JohnOne Posted November 13, 2015 Share Posted November 13, 2015 AdlibRegister function would probably suffice((1000 * 60) * 60) * 3 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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