To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The Get Caps Lock Key State VI returns the current state of the Caps Lock key.
Description
The VI calls the Windows API (User32.dll) and uses the GetKeyState function to get the current key state. The VI outputs the current key state as a numeric and also as a descriptive text string.
Requirements
Steps to Implement or Execute Code
Additional Information or References
Front Panel
VI snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.