When turning on the macro, my tooltip would not clear from screen. I updated the function to solve the problem:
!F12::
UseFlasks := not UseFlasks
if UseFlasks {
**#Persistent
; initialize start of auto-flask use
ToolTip, UseFlasks On
SetTimer, RemoveToolTip, -2000
return
RemoveToolTip:
ToolTip
return**
; reset usage timers for all flasks
for i in FlaskDurationInit {
FlaskLastUsed[i] := 0
FlaskDuration[i] := FlaskDurationInit[i]
}
} else {
ToolTip, UseFlasks Off
}
return
When turning on the macro, my tooltip would not clear from screen. I updated the function to solve the problem:
!F12::
UseFlasks := not UseFlasks
if UseFlasks {
**#Persistent
; initialize start of auto-flask use
ToolTip, UseFlasks On
SetTimer, RemoveToolTip, -2000
return