JayFran 0 Posted October 15, 2010 (edited) I tried looking over the topics in here, for a topic from not to long ago... Basically the script/line of code will run at a certain time. (say 8:15am) then it'll run your code then you can make it stop/close whenever (say 5:05pm)... If someone can post the link or reference some script that would great! Edited October 15, 2010 by JayFran Share this post Link to post Share on other sites
GEOSoft 67 Posted October 15, 2010 This is a quick method. I did write a function for someone to do exactly what you asked and if I can find it I'll edit this post. $bRun = False If NOT ($bRun) And @Hour = 8 and @Min = 15 Then $bRun = NOT $bRun ;; put your code in here If $bRun and @Hour = 17 and @Min = 5 Then Exit GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!" Share this post Link to post Share on other sites
JayFran 0 Posted October 15, 2010 This is a quick method. I did write a function for someone to do exactly what you asked and if I can find it I'll edit this post. $bRun = False If NOT ($bRun) And @Hour = 8 and @Min = 15 Then $bRun = NOT $bRun ;; put your code in here If $bRun and @Hour = 17 and @Min = 5 Then Exit Thanks! I just did this one about a minute ago (literally) $StartTime = "13:00" While 1 If @HOUR & ":" & @MIN = $StartTime Then ;script code here MsgBox(0, "", "Works") ;EndIf Sleep(100) EndIf WEnd I appreciate the input... I need to mark this topic solved now. Do you know how to do that? Share this post Link to post Share on other sites
GEOSoft 67 Posted October 15, 2010 (edited) Here is the link to the script. http://www.autoitscript.com/forum/index.php?showtopic=72627&view=findpost&p=533013 To mark the post [solved}, go to the first post, click Edit, Click "Use Full Editor" and change the title. Edited October 15, 2010 by GEOSoft GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!" Share this post Link to post Share on other sites