
It's not highly accurate, but it works with a small margin of error in the countdown time. Here is the same snippet that I made into a working countdown timer. There really isn't an easier way to do it. That script converts seconds to days, hours, minutes and seconds and places the values into variables.
#Count down timer smart notebook 11 how to
_FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.

#Count down timer smart notebook 11 code
ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.īack up and restore Windows user files _3 - Modified array functions that include support for 2D arrays. I hereby grant any person the right to use any code I post, that I am the original author of, on the forums, unless I've specifically stated otherwise in the code or the thread post. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude Give a programmer the correct code and he can do his work for a day. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to. If I posted any code, assume that code was written using the latest release version unless stated otherwise. If anyone could help me it would be great! Thanks!

What is left for me to do is transform the seconds into minutes.

Timer ( ) WEnd EndFunc =>_Run Func Timer ( ) $nMsg = GUIGetMsg ( ) Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $resetBtn $timeValue = 0 EndSwitch If $timeValue = 0 Then MsgBox ( 0, 'Done', 'Timer Done' ) ElseIf $timeValue 0 Then $timeValue = $timeValue - 1 GUICtrlSetData ( $timerlbl, $timeValue ) Sleep ( 1000 ) kxf $Form_timer = GUICreate ( "Form_timer", 196, 143, - 1, - 1 ) $timerlbl = GUICtrlCreateLabel ( "", 40, 10, 103, 41 ) GUICtrlSetFont ( - 1, 24, 400, 0, "MS Sans Serif" ) $startBtn = GUICtrlCreateButton ( "Start", 10, 60, 81, 31 ) $resetBtn = GUICtrlCreateButton ( "Reset", 100, 60, 81, 31 ) $minBtn = GUICtrlCreateButton ( "+60", 10, 100, 81, 31 ) $halfBtn = GUICtrlCreateButton ( "+30", 100, 100, 81, 31 ) GUISetState ( ) #EndRegion # END Koda GUI section # Global $timeValue = 0 While 1 $nMsg = GUIGetMsg ( ) Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $minBtn $timeValue = $timeValue + 60 GUICtrlSetData ( $timerlbl, $timeValue ) Case $halfBtn $timeValue = $timeValue + 10 GUICtrlSetData ( $timerlbl, $timeValue ) Case $resetBtn $timeValue = 0 GUICtrlSetData ( $timerlbl, $timeValue ) Case $startBtn _Run ( ) EndSwitch WEnd Func _Run ( ) While 1 Expand collapse popup #include #include #include #include #Region # START Koda GUI section # Form=c:\users\nikolas\desktop\autoit\install\koda_1.7.3.0\forms\timer.
