Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Press & release modifier via SendKeys

$
0
0
I'm using the API function SendInput to send keystrokes to another app, but sometime for unknown reason when i try to release modifier(s), they won't and stay pressed even if i repeat the code many times.

I want to try using the class SendKeys.SendWait method but i cannot figure out how to use it for just releasing modifier(s), i tried
Code:

SendKeys.SendWait("^") ' Ctrl
but it hold down Ctrl. There must be some char comes after ^ to release Ctrl, but i don't want to send anything, i tried SendKeys.SendWait("^^") but it cause error.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>