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

Post your working scripts, libraries and tools for AHK v1.1 and older
Sneeuwvos
Posts: 6
Joined: 13 Jan 2018, 05:45

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

18 Jan 2018, 15:09

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

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: MiM, todd and 78 guests