Skip to main content
Became Hot Meta Post
edited tags
Link
1201ProgramAlarm
  • 32.7k
  • 1
  • 19
  • 32
Source Link
Jeffmagma
  • 460
  • 2
  • 5

Working on a project that you have multiple questions for

I am looking into creating a taskbar replacement for Windows 10 in C#. Because of this, I need to replicate some features of the taskbar, such as having a list of icons of apps that are running, pinning and recognizing if a pinned app is running, listen if a window is "flashing", etc.

Because of the nature of the program, there might be multiple ways to do certain things. There have already been some questions about how to obtain a list of running apps in the taskbar. Some of them are old, and were made for an older version of Windows, where the answers or the principles no longer apply. Some of them were trying to accomplish a similar but not the same task, so the answer given was not in the right direction. Here are some, but not all, examples:

Most of these questions are over 10 years old, and some of them I've tried to implement, but since they aren't exactly the same question as I want answered, they don't really work for what I'm trying to do. Some of them that use process filtering or window enumeration keep extra windows that don't actually show up in the taskbar (such as Overwolf and Microsoft Text Input Application). Some of them can get the names of the apps on the taskbar successfully with UI Automation/Accessibility tools, but there is no way to get icon or process information from that.

So, what should I do? Should I ask another question but be specific in my goals, reference the other questions, and explain how my question is different? If have another similar question (for example, I want to capture all windows flashing events, but most of the questions are to capture just one specific one), should I again reference the same project, and do this every time I have a similar question related to the project that has been asked before? This would help make questions more specific and easily searchable, and was going to be my original plan. Or, should I just use one question to explain the purpose of the questions and then ask a couple related questions in one? I was considering this because there might be a way to integrate these things all together that might not be obvious if the questions were asked separately, but it would be much more of a mess to both ask and answer, with the only benefit being that I wouldn't have to re-introduce the project multiple times.