Get window id under mouse of minimized window in taskbar

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
sobuj53
Posts: 55
Joined: 19 Mar 2015, 16:08

Get window id under mouse of minimized window in taskbar

19 Feb 2018, 23:28

Hi,

The following script I've got from ahk help file retrieves window id and class when mouse pointer hovers onto them.

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

MouseGetPos, xpos, ypos 
MsgBox, The cursor is at X%xpos% Y%ypos%. 

; This example allows you to move the mouse around to see
; the title of the window currently under the cursor:
#Persistent
SetTimer, WatchCursor, 100
return

WatchCursor:
MouseGetPos, , , id, control
WinGetTitle, title, ahk_id %id%
WinGetClass, class, ahk_id %id%
ToolTip, ahk_id %id%`nahk_class %class%`n%title%`nControl: %control%
return
Image

But if a window is minimized in taskbar it doesn't retrieve window ID properly.

Image

I'm pretty sure there must be a way to retrieve window Information even when it's minimized in the taskbar. I just don't know it yet :HeHe: !

I'd really appreciate if someone can help me on this.

Thank you.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: haomingchen1998, mikeyww, mmflume, roysubs, scriptor2016, ShatterCoder and 103 guests