what is the correct syntax for SendKeys of Shift + Win + V?

57 Views Asked by At

So I wanted to close toast notification.

  1. Press Shift + Win + V move the focus to the notification.
  2. Then, Delete to dismiss it

I am wondering if C# or VB.net can achieve this without using 3rd party library, so I tried:

SendKeys.SendWait("+(^{v})")
and
SendKeys.SendWait("+(^{V})")

neither works for casing of v, what's wrong? Which syntax is written correctly? I logged it with KeyEventArgs but seems like it didn't send the Windows Key. I tried SendKeys.SendWait("+(^{ESC}v)") but it opened task manager instead

0

There are 0 best solutions below