#include "GlobalEvents.au3" _GlobalEvents_Create("@SEC = 30", Test1) While Sleep(30) WEnd Func Test1() MsgBox(0, "Test", "@SEC equals 30!") EndFunc