As many of you might know, there is a command in "RUN" that can shut down your computer after X seconds
shutdown.exe -s -t 1000
However, i dont really the fact that it closed all my other programs, so i made this TIMER program to shut down CO.
of course, as u guys expected, it works fine with minimize windows
type in X seconds for the timer
Screenshots:
[Only registered and activated users can see links. Click Here To Register...]
when u press F11, it will show how many seconds left.
[Only registered and activated users can see links. Click Here To Register...]
*this is the autohotkey exe file, its a stand alone program. works with all XP windows...not sure about vista
Code:
if you have autohotkey complier, thats even better, here is the script:
Download:
updated on 12/3/07
shutdown.exe -s -t 1000
However, i dont really the fact that it closed all my other programs, so i made this TIMER program to shut down CO.
of course, as u guys expected, it works fine with minimize windows
type in X seconds for the timer
Screenshots:
[Only registered and activated users can see links. Click Here To Register...]
when u press F11, it will show how many seconds left.
[Only registered and activated users can see links. Click Here To Register...]
*this is the autohotkey exe file, its a stand alone program. works with all XP windows...not sure about vista
Code:
if you have autohotkey complier, thats even better, here is the script:
Code:
Gui, Add, Text,, COclose 1024x768
Gui, Add, Text,x10 y32 w60 h20, Close after:
Gui, Add, Edit, x80 y30 w58 h20 vTime,3600
Gui, Add, Text,x138 y32 w80 h20, seconds
Gui, Add, Text,x10 y62 w180 h30, Press F11 to show how many seconds left
Gui, Add, Button, x100 y92 w60 h30 vButton gStart, Ok
Gui, Show
return
Start:
Gui, Submit, Hide
number = %Time%
WinGet,id, ID,[Conquer2.0]
gata := false
MsgBox, CO will shut down after %Time% seconds
;------------------Timer---------------------------
Loop %Time%
{
sleep 1000
number--
}
;------------------Exit_functions-------------------
winkill, ahk_id %id%
ExitApp
;------------------F11_timer------------------------
*F11::
SplashTextOn,140 , , %number% seconds left.
Sleep, 3000
SplashTextOff
return
updated on 12/3/07