From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Hide Inactive Mouse Cursor

Code and Documents

Attachment

Readme file for Hide Inactive Mouse Cursor.vi

Description

The Hide Inactive Mouse Cursor VI hides the mouse cursor after a specified period of inactivity.

The VI calls the Windows API (User32.dll) and uses the ShowCursor function to hide and show the mouse cursor.

To stop this VI, you must call the Shutdown Hide Inactive Mouse Cursor VI.

Application Software

LabVIEW 2010 or higher

Driver Software

None.

Concepts Illustrated

The Hide Inactive Mouse Cursor VI illustrates the following concepts:

- Using the Windows User32.dll functions to programmatically hide the mouse cursor after a specified period of inactivity.

Extracting the files

The Hide Inactive Mouse Cursor VI is supplied as a zip archive containing all required items.

Additional Information

Additional information related to the use and operation of the Hide Inactive Mouse Cursor VI may be accessed via:

- The block diagrams of all included VIs

- The documentation within all included VIs

Change Control

11-18-2012

Initial release.

Developed by

Mark Ridgley

Mark.Ridgley_LabVIEW.Developer@comcast.net

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

Contributors