help with feature for gui
Posted: 11 Feb 2022, 00:44
hey guys, I would like that when the person places the mouse over the Picture in GUI, a Tooltip appears with some instructions.
The way I found to do it was like this:
could there be a better way?
The way I found to do it was like this:
could there be a better way?
Code: Select all
#SingleInstance, Force
Gui, Add, Picture, x15 y15 w50 h50, ERROR.png
Gui, Show, w200 h200, Test
SetTimer, Feature, On
return
Feature:
MouseGetPos, mouse_Pos_X, mouse_Pos_Y
if ((mouse_Pos_X > 15 && mouse_Pos_X < 65) && (mouse_Pos_Y > 15 && mouse_Pos_Y < 65)) {
ToolTip, Description `nDescription `nDescription `nDescription `n
RETURN
}
ToolTip
RETURN