vb.net press/release keys
Posted
by
Cyclone
on Stack Overflow
See other posts from Stack Overflow
or by Cyclone
Published on 2010-12-28T02:20:32Z
Indexed on
2010/12/28
3:54 UTC
Read the original article
Hit count: 163
How can you simulate keypresses and releases? I know you can essentially hit a key with Sendkeys.SendWait
, but how can your code press and hold q
, for example?
Any help is much appreciated! Everything I find keeps pointing me at sendkeys, which is not correct.
I essentially wish to be able to call something like press("q")
and release("q")
. The effect would be the same as physically holding them down.
Thanks for your help!
© Stack Overflow or respective owner