Shutdown Timer

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Shutdown Timer

Danke: Shutdown Timer

Post by Best-Code-in-Use » 10 Jan 2019, 16:43

Genial, vielen Dank, das funktioniert einwandfrei!

Re: Shutdown Timer

Post by Heloo1982 » 10 Jan 2019, 14:28

Gosub TimerStart an die Ende der Gui stellen? Oder denke ich gerade zu einfach?

Code: Select all

Gui, Add, GroupBox, x10 y10 w420 h100, Zeit (in Minuten)
	Gui, Font, S15 CBlack
	Gui, Add, Edit, x20 y30 w400 h40 gTimer_Preview vTimer_Minutes, 60
	Gui, Font, S9
	Gui, Add, DropdownList, w400 vTimer_Action, Herunterfahren||Neustarten|Sleep|Hibernate|
	Gui, Font, S15 W600
	Gui, Add, Text, x15 w410 Center +BackGroundTrans, Die Aktion startet in
	Gui, Font, S40, Lucida Console
	Gui, Add, Text, x15 w410 Center +BackGroundTrans vTimer_Update, 0:60:00
	Gui, Font, S12 W400
	Gui, Add, Button, x20 w90 Center gTimer_Start, Start
	Gui, Add, Button, x+10 yp w90 Center gTimer_Pause, Pause
	Gui, Add, Button, x+10 yp w90 Center gTimer_Stop, Stop
	Gui, Add, Button, x+10 yp w90 Center gTimer_Exit, Beenden
	Gui, -SysMenu
	Gui, Show, , % ScriptName
	ShutdownGui=1
	GoSub Timer_Start
Return

Shutdown Timer

Post by Best-Code-in-Use » 10 Jan 2019, 13:23

Hallo liebe Mitstreiter,

ich habe mir ein Shutdown Skript angepasst, allerdings möchte ich das der Timer nach Start des Skriptes sofort anläuft.
(Ohne den START Button drücken zu müssen)
Hintergrund ist der der das der Shutdown jederzeit über die GUI abgebrochen werden kann, aber wenn Niemand am PC sitzt halt durchgeführt wird nach der abgelaufenen Zeit.

Über eine Erleuchtung würde ich mich freuen. ;-)
Shutdown Timer

Top