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
Timer per Tooltip Topic is solved
Moderator: jNizM
-
- Posts: 223
- Joined: 06 Jun 2017, 11:38
Re: Timer per Tooltip Topic is solved
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
-
- Posts: 223
- Joined: 06 Jun 2017, 11:38
Re: Timer per Tooltip
Danke man mega genau das was ich suchte
Re: Timer per Tooltip
Gibt es nur das Problem mit dem Flickern.
Re: Timer per Tooltip
what flickering
-
- Posts: 223
- Joined: 06 Jun 2017, 11:38
Re: Timer per Tooltip
do you have an idea how I let the timer show the hours when the timer is over 1 hour?swagfag wrote:what flickering
Re: Timer per Tooltip
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
-
- Posts: 223
- Joined: 06 Jun 2017, 11:38
Re: Timer per Tooltip
best man, thank you!
but why this tooltip
and not like before?
but why this tooltip
Code: Select all
ToolTip, % Format("{}:{}:{}", hours, minutes, seconds), 0, 0
Code: Select all
ToolTip, % hours ":" minutes ":" seconds, 0, 0
Re: Timer per Tooltip
It's effectively the same tooltip, just written differently
-
- Posts: 223
- Joined: 06 Jun 2017, 11:38
Re: Timer per Tooltip
ok that's fine thanks
Who is online
Users browsing this forum: gero and 6 guests