Vladi243 Posted September 25, 2008 Share Posted September 25, 2008 Hey, I want to make my script run automatically in specific time. I searched in the help file but I didn't understand how to do it. Thanks Vladi. Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 25, 2008 Share Posted September 25, 2008 Windows Task Scheduler. Unless you want to have the script constantly running in the background waiting for the time to come and call a function that would be the easiest route. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
AlmarM Posted September 25, 2008 Share Posted September 25, 2008 Hello, Mayby this is what you are looking for? I made this along time ago (when I was a newb in AutoIt) expandcollapse popup#include <GUIConstants.au3> #include <Sound.au3> Global $act $GUI = GUICreate("Reminder v1", 200, 180, -1, -1) $Info = GUICtrlCreateLabel("If u dont want to forget something, u" & @CRLF & "can use this program to warn u at a" & @CRLF & "giving time.", 10, 10) $h_info = GUICtrlCreateLabel("Hour:", 10, 60) $h_Input = GUICtrlCreateInput(@Hour, 45, 57) $m_info = GUICtrlCreateLabel("Min:", 100, 60) $m_Input = GUICtrlCreateInput(@Min, 125, 56, 33) $What_info = GUICtrlCreateLabel("What sould be remembered?", 10, 90) $What_Input = GUICtrlCreateInput("", 10, 110, 180) $Go = GUICtrlCreateButton("Go!", 10, 140, 180, 30) $remind = False GUISetState() While 1 $nMsg = GUIGetMsg() Select Case $nMsg = $GUI_EVENT_CLOSE Exit Case $nMsg = $Go $h = GUICtrlRead($h_Input) $m = GUICtrlRead($m_Input) $remind = true EndSelect If $remind then If (@HOUR >= $h) Then If (@MIN >= $m) Then _Remind() $remind = false EndIf EndIf EndIf WEnd Func _Remind() _SoundPlay(@ScriptDir & "\Song.mp3") $Warn_GUI = GUICreate("REMIND", 400, 100, -1, -1) $Remind_Label = GUICtrlCreateLabel("Reminding u:", 10, 10) $Reming_What = GUICtrlCreateLabel(GUICtrlRead($What_Input), 10, 30) $GotIt = GUICtrlCreateButton("Got It!", 10, 65, 380) GUICtrlSetState($GotIt, $GUI_DISABLE) GUISetState() Sleep(2000) GUICtrlSetState($GotIt, $GUI_ENABLE) Do $nMsg2 = GUIGetMsg() Until ($nMsg2 = $GUI_EVENT_CLOSE) Or ($nMsg2 = $GotIt) _SoundStop(@ScriptDir & "\Song.mp3") GUIDelete($Warn_GUI) EndFunc Hope it helps ^^, AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Vladi243 Posted September 25, 2008 Author Share Posted September 25, 2008 Windows Task Scheduler. Unless you want to have the script constantly running in the background waiting for the time to come and call a function that would be the easiest route.Where can I find Windows Task Scheduler? Hello, Mayby this is what you are looking for? I made this along time ago (when I was a newb in AutoIt) expandcollapse popup#include <GUIConstants.au3> #include <Sound.au3> Global $act $GUI = GUICreate("Reminder v1", 200, 180, -1, -1) $Info = GUICtrlCreateLabel("If u dont want to forget something, u" & @CRLF & "can use this program to warn u at a" & @CRLF & "giving time.", 10, 10) $h_info = GUICtrlCreateLabel("Hour:", 10, 60) $h_Input = GUICtrlCreateInput(@Hour, 45, 57) $m_info = GUICtrlCreateLabel("Min:", 100, 60) $m_Input = GUICtrlCreateInput(@Min, 125, 56, 33) $What_info = GUICtrlCreateLabel("What sould be remembered?", 10, 90) $What_Input = GUICtrlCreateInput("", 10, 110, 180) $Go = GUICtrlCreateButton("Go!", 10, 140, 180, 30) $remind = False GUISetState() While 1 $nMsg = GUIGetMsg() Select Case $nMsg = $GUI_EVENT_CLOSE Exit Case $nMsg = $Go $h = GUICtrlRead($h_Input) $m = GUICtrlRead($m_Input) $remind = true EndSelect If $remind then If (@HOUR >= $h) Then If (@MIN >= $m) Then _Remind() $remind = false EndIf EndIf EndIf WEnd Func _Remind() _SoundPlay(@ScriptDir & "\Song.mp3") $Warn_GUI = GUICreate("REMIND", 400, 100, -1, -1) $Remind_Label = GUICtrlCreateLabel("Reminding u:", 10, 10) $Reming_What = GUICtrlCreateLabel(GUICtrlRead($What_Input), 10, 30) $GotIt = GUICtrlCreateButton("Got It!", 10, 65, 380) GUICtrlSetState($GotIt, $GUI_DISABLE) GUISetState() Sleep(2000) GUICtrlSetState($GotIt, $GUI_ENABLE) Do $nMsg2 = GUIGetMsg() Until ($nMsg2 = $GUI_EVENT_CLOSE) Or ($nMsg2 = $GotIt) _SoundStop(@ScriptDir & "\Song.mp3") GUIDelete($Warn_GUI) EndFunc Hope it helps ^^, AlmarMThanks, it helps me a little. Link to comment Share on other sites More sharing options...
youknowwho4eva Posted September 25, 2008 Share Posted September 25, 2008 (edited) control panel Edit: it's called Scheduled Tasks in XP Edited September 25, 2008 by youknowwho4eva Giggity Link to comment Share on other sites More sharing options...
spudw2k Posted September 25, 2008 Share Posted September 25, 2008 Start -> Run -> Tasks 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...
youknowwho4eva Posted September 25, 2008 Share Posted September 25, 2008 @windowsdir & "\tasks Giggity 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