VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

The Better SendKeys Statement

Ronald Borla  (5 Submissions)   VB function enhancement   Beginner   Wed 3rd February 2021

The SendKeys statement is limited only to some keyboard presses...
While this code gives you more...
Such as:
1. You cannot send Space Keystrokes in SendKeys (I tried to do it, or maybe I just don't know how), while you can in HitKey...
HitKey Asc(" ") or
HitKey KeyCodeConstants.vbKeySpace
2. HitKey can also perform CapsLock, ScrollLock, NumLock, or other Lock, and other Keys you can find in your keyboard.. Remember to use VB Constants in "KeyCodeConstants"
code by: Ronald Borla

Rate The Better SendKeys Statement (4(4 Vote))
The Better SendKeys Statement.bas

The Better SendKeys Statement Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters