Timer per Tooltip

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: Timer per Tooltip

Re: Timer per Tooltip

Post by UnReALiTyy » 16 May 2018, 11:12

ok that's fine thanks

Re: Timer per Tooltip

Post by swagfag » 16 May 2018, 11:00

It's effectively the same tooltip, just written differently

Re: Timer per Tooltip

Post by UnReALiTyy » 16 May 2018, 10:53

best man, thank you! :bravo: :bravo:
but why this tooltip

Code: Select all

ToolTip, % Format("{}:{}:{}", hours, minutes, seconds), 0, 0
and not like before?

Code: Select all

ToolTip, % hours ":" minutes ":" seconds, 0, 0

Re: Timer per Tooltip

Post by swagfag » 15 May 2018, 16:49

Code: Select all

tooltip := {"x" : (A_ScreenWidth // 2), "y" : (A_ScreenHeight // 2)}
duration := 3676 ; in seconds
SetTimer, Countdown, 1000

Countdown:
{
	if !(duration) {
		ToolTip
		SetTimer, , Off
		return
	}

	duration--

	hours := SubStr("0" . (duration // 3600), -1)
	minutes := SubStr("0" . ((duration - hours * 3600) // 60), -1)
	seconds := SubStr("0" . (Mod(duration, 60)), -1)
	ToolTip, % Format("{}:{}:{}", hours, minutes, seconds), % tooltip.x, % tooltip.y
return
}

Esc::ExitApp, 0

Re: Timer per Tooltip

Post by UnReALiTyy » 15 May 2018, 10:44

swagfag wrote:what flickering

Image
do you have an idea how I let the timer show the hours when the timer is over 1 hour?

Re: Timer per Tooltip

Post by swagfag » 30 Apr 2018, 11:00

what flickering

Image

Re: Timer per Tooltip

Post by Frosti » 30 Apr 2018, 10:19

Gibt es nur das Problem mit dem Flickern.

Re: Timer per Tooltip

Post by UnReALiTyy » 22 Apr 2018, 10:28

Danke man mega genau das was ich suchte :superhappy: :superhappy: :superhappy:

Re: Timer per Tooltip

Post by swagfag » 22 Apr 2018, 09:56

Code: Select all

tooltip := {"x" : (A_ScreenWidth // 2), "y" : (A_ScreenHeight // 2)}
duration := 15 ; in seconds
SetTimer, Countdown, 1000

Countdown:
{
	if !(duration) {
		ToolTip
		SetTimer, , Off
		return
	}

	duration--

	minutes := SubStr("0" . (duration // 60), -1)
	seconds := SubStr("0" . (Mod(duration, 60)), -1)
	ToolTip, % minutes . ":" . seconds, % tooltip.x, % tooltip.y
return
}

Esc::ExitApp, 0

Timer per Tooltip

Post by UnReALiTyy » 22 Apr 2018, 09:19

Hey leute vielleicht habt ihr eine Idee wie ich einen 4 Minütigen timer schreiben kann der mir am liebsten als tooltip angezeigt wird, sprich so...

Tooltip, 04:00, 0, 0
Tooltip, 03:59, 0, 0
Tooltip, 03:58, 0, 0
Tooltip, 03:57, 0, 0
Tooltip, 03:56, 0, 0
Tooltip, 03:55, 0, 0

und sorry für die mangelnde erklärung :oops:

Top