Overview
This VI is designed to programmatically type a string to wherever the curser is. It uses the keyb_event function of the user32.dll to type each letter in the second for loop and creates an array of numerics in the first for loop which refer to each letter in the string. To select which letters to type, the code converts each letter into its corresponding ASCII code.
Description
There are currently some limitations to the code: It currently only types a few different punctuation marks as these do not translate directly from there ASCII codes to the dll commands, so cases have been added for each piece of required punctuation. It is currently not case sensitive and does not offer the functionality of using the shift key (or any other) in conjunction with another key. These limitations are there because this was all I needed for my application but it wouldn't be too hard to modify this to include the additional functionality.
Requirements
- LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
- Type in a string to String control.
- Run the VI.
Additional Information or References
VI Snippet

**This document has been updated to meet the current required format for the NI Code Exchange.**