Sorry to bother you again ![:)]()
I have this countdown script which i want to trigger n action in an exact time.
for example 2 hours before new year to pop up a png image with a message.
How to make to be only in tray and pop up a balloon with how many time is left for New Year.
Thank you in advance
![:)](http://aut1.autoit-cdn.com/forum/public/style_emoticons/autoit/smile.gif)
I have this countdown script which i want to trigger n action in an exact time.
for example 2 hours before new year to pop up a png image with a message.
How to make to be only in tray and pop up a balloon with how many time is left for New Year.
Thank you in advance
[ autoit ]
#include #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("AForm1", 122, 42, 438, 156) $Label1 = GUICtrlCreateLabel("15:00", 8, 8, 43, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $time=TimerInit() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch $new = TimerDiff ($time) $new = (15*60*1000)-$new $seconds = Round ($new/1000) $newMin = Floor ($seconds/60) $newSec = Mod ($seconds, 60) If $newSec < 10 Then $newSec = "0"&$newSec GUICtrlSetData ($Label1, $newMin&":"&$newSec) WEnd