Detect what app the mouse pointer is hovering on.
Detect what app the mouse pointer is hovering on.
Whenever the mouse pointer hovers on a specific app, I want it to execute some code without the need to click the app (i.e. without using #IfWinActivate), does anyone know how to do it?
Re: Detect what app the mouse pointer is hovering on.
You can use SetTimer and MouseGetPos to monitor which window the mouse is over and for how long, including whether its position is changing (i.e., whether it’s hovering). The documentation links are to AHK v1 because I suspect you are not really using v2 (you posted in the section for v2, which is in alpha release).