1337pyro's Auto Shutdown
Hi,
I often had the Problem that I don't want my Bot to run all the night/day. I wrote this little autoit-script to shut my PC down after a certain time. I mainly use this on patchday or announced server maintenance.
---------
You can set the Timer...
and it will show the remaining time in a tooltip in the top left corner of your screen.
The last minute got a special tooltip. (just waited 1336 minutes to get this)
---------
Downloads:
https://rapidshare.com/files/7501919...(1337pyro).au3
https://rapidshare.com/files/3667666...(1337pyro).exe
The exe comes with a fancy shutdown icon.
---------
I share the sourcecode as it is not the most difficult thing on earth and we could try to improve it and costumize it a little. The shutdown is forced.
Code:
;-----------Auto Shutdown-----------
;-Written by 1337pyro for Ownedcore-
#RequireAdmin
$sleeptime = InputBox("Auto Shutdown", "How many minutes until shutdown?")
Do
if $sleeptime > 1 Then
ToolTip("Waiting " &$sleeptime& " minutes until shutdown!", 0, 0)
Sleep(60000)
$sleeptime = $sleeptime - 1
Else
ToolTip("Last minute before shutdown!", 0, 0)
Sleep(60000)
Shutdown(5)
EndIf
Until @error