Example Code

Custom shortcut

Code and Documents

Attachment

Download All

Overview
This VI demonstrates custom shortcut functionality. This particular VI was created to make it easier to download images from the web, and was tested for google chrome.

 
Description
This VI allows you to download images from the web using the shortcut [left click + Q]. This removes the need to navigate the context menu and opens the save as dialiog. It has two different modes, the first opens the save as dialog and the second autosaves it to the currently selected download directory. This may not be a useful example for some, but it illustrates how you can initiate a process from a keyboard / mouse input.

 
Requirements

  • LabVIEW 2013 (or compatible)


Steps to Implement or Execute Code

  1. Either run main.vi or build and run the executable.
  2. Select mode 1 and enter your web browser (tested with chrome)
  3. Find an image, left click on the image and press q at the same time, this will open the save image as dialog.
  4. Save an image to the desired directory
  5. Change to mode 2
  6. Save an image in the same manner as before, the application will skip the save image as dialog and save the image with its default name to the same location as the previous image.

 

Additional Information or References

block diagram

sssss.png

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

 

Matt H
Applications Engineer
National Instruments UK

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