Sendkeys Replacement for Visual Basic

Published by
Published on
Visual Basic's Sendkeys statement does not work beyond XP. The only way that Visual Basic programers can send keys under Vista or Win 7 is to use the Windows API, SendInput function and that can mean a huge amount of re-coding in applications originally written using the VB Sendkeys statement. Fortunately, M8 can provide a much easier solution. Keysend.bas is a module which wraps SendInput into a new sub Sendkey. Sendkey is a direct replacement for the VB Sendkeys. To use it, all you have to do is add the module to your project then replace "Sendkeys" with "Sendkey" in your code. Sendkey interprets all Sendkeys parameters without modification. In addition to fixing Sendkeys problems under Vista, Sendkey also includes the following features not available in the VB Sendkeys: 1. It can send the PrtScr key 2. You can specify that numbers are from the numeric keypad 3. You can set the state of the capslock, numlock and scrollock keys 4. You can send keys between applications with different keyboard layouts. There are versions for VB5/6/VBA and VB.Net.
Price USD29.99
License Free to try
File Size 1.27 MB
Version 3.0
Operating System Windows XP Windows NT Windows Me Windows Windows Server 2008 Windows 2003 Windows 7 Windows 98 Windows 8 Windows 2000 Windows Vista
Published by
Published on

ZDNET Latest Articles

Four must-have travel essentials

Four must-have travel essentials

It’s easy to think that all you need to carry with you these days is a smartphone and you’re ready for anything. But some extended periods away from my desk have discovered four things that are ‘must-haves’ for the traveller.

18 hours ago by in Hardware