Demonstrates the use of VkKeyScanExA() to convert a string to virtual keys and use of SendInput() to synthesise that string being typed.
This project shows how to use some of the functionality offered in the User32.dll that comes with Windows to simulate keyboard usage. I extended the use of a couple of already existing forum posts to show how to convert a string to an array of virtual keys that can then be used to simulate keyboard usage.
Steps to Implement or Execute Code
Run the VI
Type a string into the String Input control.
Click the "Recreate String" Boolean control.
Software: Developed on Windows 7
LabVIEW 2013 SP1 or later.
Last update: Nov 8, 2016
- DLL Path is wrong. It is located here: C:\Windows\System32\user32.dll