Maxvan1 Posted March 24, 2007 Share Posted March 24, 2007 I know I could start a script at a certain time by just timing it with sleep(XXXXXX) But that is not convenient because then I have to do all the math and such to figure out how long it needs to sleep. So, my question is, how can I start a script at a certain time, lets say 12 noon? Is it possible? Second question, that I can figure out myself, but if someone would like to be kind and answer it quickly (or point me in the right direction) Of how I can minimize a window, so that it is not on the bottom of my page (so that the only way to get it back is winsetstatemaximize) . I did it in my WoW bot, but I copied someone else's script and put my own stuff between the lines. I would think that it is winsetstateminumize but it did not work (I just started working on this, so I am sure I can figure it out but help is always nice ) Thanks, MV1 Link to comment Share on other sites More sharing options...
nfwu Posted March 24, 2007 Share Posted March 24, 2007 1) Use appropriate English with punctuation. I don't wanna read your thought train/ Answer to your first enquiry: While @Hour <> 12 Sleep(60000) Wend Just keep sleeping until it is noon. >.< #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Abaddon Posted March 24, 2007 Share Posted March 24, 2007 Would you have to somehow read the system time to do that? Link to comment Share on other sites More sharing options...
BrettF Posted March 24, 2007 Share Posted March 24, 2007 Would you have to somehow read the system time to do that? @hour - Retrives the current Hour in 24 hour time format @min - Retrives the current minute @Sec - Retrives the current second And code that tells you if it is 1PM: While 1 IF @hour = 13 and @MIN = 0 and @SEC = 0 Then MsgBox (0, "HELLO!", "IT's 1:00pm!") Else Sleep (200) WEnd Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Maxvan1 Posted March 25, 2007 Author Share Posted March 25, 2007 EXACTLY what I wanted. Thank you. Link to comment Share on other sites More sharing options...
jvanegmond Posted March 25, 2007 Share Posted March 25, 2007 (edited) Run("cmd /c at 0:49:00 explorer.exe") Edited March 25, 2007 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Valuater Posted March 25, 2007 Share Posted March 25, 2007 There are a few approaches in Autoit Wrappers too! ; Time Machine #2 ; Hours & Minutes ; Author Valuater $start = @HOUR & ":" & @MIN + 2 ; for testing While 1 $start2 = @HOUR & ":" & @MIN If $start = $start2 Then Run("notepad.exe") ExitLoop EndIf ToolTip("Start Time = " & $start & @CRLF & "Real Time = " & $start2, 20, 20, "Time Machine", 1) Sleep(2000) WEnd Exit 8) 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