If you are a Visual Basic programmer, you may have already noticed that the Sendkeys command does not work under Windows Vista. The only way that programmers can send information about the keystroke in Windows Vista is by using a Windows API. Luckily, this Keysend.bas will solve your problem.
Keysend.bas (also known as Sendkey) is a module for Visual Basic that wraps the SendInput function in two new Sendkey subroutines, from which keys with the corresponding parameters can already be sent.
From the new routines created by Keysend.bas you can also perform new actions, such as sending what is pressed on the PrtScr key, sending the status of the capslock, numlock and scrollock keys, sending keys between different applications, and so on.
You can free download Keysend.bas 32, 64 bit and safe install the latest trial or new full version for Windows 10 from the official site.