Share via

Windows Taskbar access

Dineshkumar.S 456 Reputation points
2022-08-16T03:34:44.04+00:00

How to check the active windows and how many items are there in the taskbar using C# Code ?? Can any one suggest me some approach ?? TIA

Developer technologies | .NET | .NET CLI
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

0 comments No comments

Answer accepted by question author

Castorix31 91,876 Reputation points
2022-08-16T05:44:05.32+00:00

A way is with IUIAutomation, like the test code I had posted in this thread : How to find TaskBar button screen Rect of a window?

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Dineshkumar.S 456 Reputation points
    2022-08-18T12:02:03.937+00:00

    How to read the keystrokes using c# and for example I need to verify if a user press the windows + D to go desktop my tool need to verify that the user has pressed those key combinations ?? can you suggest me ideas ? TIA

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.