Example Programs

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Caps Lock Key State Using LabVIEW

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

  • LabVIEW 2012( (or compatible)

Steps to Implement or Execute Code

  1. Change the state of Capslock  key
  2. Run the VI 

 

Additional Information or References

Front Panel

FP.JPG

VI snippet

BD.png

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