Example Code

Ignore Keyboard Shortcuts in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This VI shows an example of how to programmatically disable keyboard shortcuts in a LabVIEW VI.
Description
It specifically looks for the shortcuts

Ctrl-Z, Ctrl-X, Ctrl-C, and Ctrl-V, tells the user which shortcut was attempted, and discards those shortcuts so the operation is not performed.

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open " Discard Shortcuts 2012 NIVerified.vi"
  2. Run the program

 

Additional Information or References
VI Block Diagram

 5-148.png

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

Matt J - NI Tools Network

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.