Home > OS >  In .net how to tell if a Microsoft Windows 11 app, like the snipping tool, is running
In .net how to tell if a Microsoft Windows 11 app, like the snipping tool, is running

Time:03-03

Microsoft has changed their snipping tool with Windows 11. It has the same name 'SnippingTool.exe" as in W10, but is in a different loction and has different behaviours.

Regardless, what I'm trying to figure out is how to determine programmatically if it is running.

With the W10 version, the following works great:

Dim IsSnippingToolRunning as Boolean = (Diagnostics.Process.GetProcessesByName("snippingtool").Length > 0)

It does not however work for the W11 version.

I've tried looking at all the running process names when it is running, but can't see one that corresponds to the W11 snipping tool being active (although it is when I do the check).

CodePudding user response:

It seems like ScreenClippingHost.exe is the process name you want. I was able to find this quickly using the excellent enter image description here

  • Related