Skip to content

tooltip not clearing #9

@garretthester

Description

@garretthester

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions