Hi. Is there a way to find out a window handle of running app when mouse cursor is over app's taskbar button or app's group's taskbar button? Thanks.
Attachments: Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.
See if this helps to answer your question.
It works, thanks.
Although it works, I can't find out HWND exactly. Tried to get different properties of IUIAutomationElement without success. The only way I found by using get_CurrentName which is only a part of window title. Any ideas?
Have you tried IUIAutomationElement::get_CachedNativeWindowHandle or IUIAutomationElement::get_CurrentNativeWindowHandle ?
All calls to get_Cached* fail with E_INVALIDARGUMENT. Call to get_CurrentNativeWindowHandle returns 0 for any IUIAutomationElement.
There is a way by injecting a DLL to hook Explorer internal interfaces like CTaskItem/ITaskItem, CTaskGroup/ITaskGroup, but it is complexYou can see the method in taskbar_inspector.c
6 people are following this question.
Desktop Duplication API returns unreliable pointer info in Win10 version 2004
Increasing Private Bytes but constant Virtual Bytes and Working Set. Genuine Memory Leak?
Using SetParent to dock a window doesn't work on application with uiAccess=true
Magnifier Control unable to magnify the taskbar start menu
How do I limit the length of text that can be entered in the Text Services Framework?