0

My application is using ms-screenclip: URI scheme to launch Windows 10/11 built in screenshotting tool.

https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-screen-snipping

My question is, is there an undocumented way of disabling the notification for the snipping tool that pops up after a screenshot is taken for this specific instance so user settings aren't affected? I'd like to do so programmatically without user involvement. It breaks the flow of my application.

There is a way to disable it via registry programmatically, however it requires for my app to have elevated Administrative privileges to do so.

Example of notification

JaggerPleab
  • 103
  • 1

2 Answers2

0

You could edit the registry

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.ScreenSketch_8wekyb3d8bbwe!App] "Enabled"=dword:00000000

Perhaps before and after snipping.

Gantendo
  • 4,615
  • 1
  • 18
  • 30
  • Editing the Registry *once* during program *installation*, with *acceptance by the user to allow* this Registry change, is not a bad idea. However, since it requires UAC to *make* a Registry change, that would involve twice the number of notifications! ;-) – DrMoishe Pippik Nov 11 '21 at 19:30
  • @DrMoishePippik Not if running the program already requires administrative privileges, right? – Gantendo Nov 11 '21 at 19:55
  • most programs performing minor tasks do *not* run as Administrator, and I'd distrust an application that *always* requires that privilege for a minor task. Note the standard practice for most applications that perform their own updates: a UAC dialog is shown to allow system changes. – DrMoishe Pippik Nov 11 '21 at 20:20
  • OP hasn't told us about their application so we don't know if it does a minor or major task. We also don't know if it already requires admin privileges. – Gantendo Nov 12 '21 at 02:31
  • 1
    I think this gets me what I need. Thanks – JaggerPleab Nov 12 '21 at 04:11
0

No one (to my knowledge) has found any documented or undocumented method for disabling the notification for the snipping tool, except globally for all of Windows and requiring elevation.

I suggest using another tool for taking the screenshot - there are many free tools available.

In the post Take a screen shot from command line in Windows you will find several free tools: NirCmd, screenCapture.bat, MiniCap, IrfanView, boxcutter, Screenshot-cmd and even PowerShell.

harrymc
  • 455,459
  • 31
  • 526
  • 924