Sendkey is a program that serves as a substitute for Visual Basic's Sendkeys and operates seamlessly on Vista and Win 7. By adding the module to your project and replacing "Sendkeys" with "Sendkey" in your code, you can easily use it.

The Keysend.bas module wraps SendInput into a new sub Sendkey, which is a direct replacement for VB's Sendkeys. All you have to do is add the module to your project and replace "Sendkeys" with "Sendkey" in your code. Sendkey will interpret all Sendkeys parameters without requiring any modification. In addition to fixing Sendkeys problems under Vista, it also includes several features not available in VB's Sendkeys.
For example, it can send the PrtScr key, and you can specify that numbers are from the numeric keypad. You can also set the state of the capslock, numlock, and scrollock keys, and send keys between applications with different keyboard layouts. Versions are available for VB5 / 6/VBA and VB.Net.
Overall, if you're looking for an easier way to send keys in Visual Basic under Vista or 7, Keysend.bas is definitely worth checking out.
Version 3.00.38: Vista Compatible VBA Compatible.
Version 3.00.37: Vista Compatible VBA Compatible.
Version 3.00.36: Vista Compatible VBA Compatible.
Version 3.00.35: Vista Compatible VBA Compatible.
Version 3.00.34: Vista Compatible VBA Compatible.
Version 3.00.33: Vista Compatible VBA Compatible.
Version 3.00.32: Vista Compatible VBA Compatible.
Version 3.00.31: Vista Compatible VBA Compatible.
Version 3.00.29: Vista Compatible VBA Compatible.
Version 3.00.28: Vista Compatible VBA Compatible.