Jump to content

Start Time (Topic)


JayFran
 Share

Recommended Posts

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 by JayFran
Link to comment
Share on other sites

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

George

Question 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!"

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 by GEOSoft

George

Question 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!"

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...