Distinction Between an Open Folder and the Desktop/Taskbar
Posted: 06 Aug 2020, 05:34
I have used the following commands to obtain information about the window or program below the mouse cursor:
The program is to take a specified action if the mouse cursor is above an open folder but is take no action when the cursor is above the desktop or taskbar. What “If” command should be used to make this distinction between an open folder and the desktop/ taskbar?
Code: Select all
MouseGetPos,,, mp
WinGet, prn, ProcessName, ahk_id %mp%
WinGetTitle, tit, ahk_id %mp%