Page 1 of 1

Simple scheduler to run tasks every X sec/min/hours

Posted: 18 Jan 2018, 15:09
by Sneeuwvos
Hi guys,

The following scripts works as a scheduler. It runs in the Windows traybar and you can activate tasks after X sec/min/hours.

Code: Select all

#Persistent
#SingleInstance ignore

; Tray menu
Menu, Tray, NoStandard ; remove all options

Menu, Tray, Add, About, ClickHandler
Menu, Tray, Default, About 

Menu, Tray, Add, Exit, ExitScript ; add exit option

SetTimer, DoAction1, % ((1000*60*60) * 1) ; Run every 1 hours
return

DoAction1:
        MsgBox, One hour has passed... do I need to do something for you?
	return
	
ClickHandler:
	MsgBox, You did a double click on me!
	return

ExitScript: 
	ExitApp
	Return