I am looking for a simple script which records countdown or countup to a txt file, can you help in creating of such a script?
The timer (hours:minutes:seconds) I would like to edit directly in a script file, no need of any windows like in a script below.
And at the end of countdown I would like to add the following script:
Code: Select all
Title := "Please Confirm?", Sec := 30
SetTimer, Countdown, 1000
MsgBox, 64, %Title%, Will launch in %Sec% seconds, %Sec%
Return
Countdown:
ControlSetText, Static2, % "Will launch in " (Sec:=Sec-1) " seconds"
, %Title% ahk_class #32770
Return
Code: Select all
~^z:: ;
FileDelete, ctrlz.txt
++cnt ;
FileAppend, Counter: %cnt%`n, ctrlz.txt
Return
Thank you.