I'm using this example on my gui script: https://www.autohotkey.com/docs/commands/Gui.htm#ExToolTip
My problem is the OnMessage function is being executed on every mouse movement, even if the gui window is not active, minimized or even destroyed. Yes I know this is how is supposed to work, and that I can disable that on message with "" parameter on it.
But I'm trying to make it work only when the gui window is active, and not execute it on everymouse move. I tried with If WinActive("ahk class AutoHotkeyGUI") inside the onmessage function and the tooltip is not showing if the window is not active but still it checks if the window is active or not on every mouse movement. I'd rather a better and clean solution for this.
This is driving me mad and cannot find anything about it.
How can I accomplish this?
Thank you all for your time reading my post
![Why blow the cream? :beer:](./images/smilies/beer.gif)
Regards