SetCursor Script Header: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
No edit summary |
(→Usage) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
== Description == | == Description == | ||
This is a script header based on code by Razor and DOCa Cola. | <p>This is a script header based on code by Razor and DOCa Cola. | ||
I've taken the original code and converted it into macros. | I've taken the original code and converted it into macros. | ||
The cursor is also now updated immediately without having to move the mouse cursor. | The cursor is also now updated immediately without having to move the mouse cursor.</p> | ||
<p>'''Note''': This uses the System.dll plugin.</p> | |||
== Usage == | == Usage == | ||
<highlight-nsis>!include SetCursor.nsh</highlight-nsis> | |||
Include the script header. This must be at the top of you installer script. | |||
<highlight-nsis>${SetSystemCursor} [cursor_id]</highlight-nsis> | <highlight-nsis>${SetSystemCursor} [cursor_id]</highlight-nsis> |
Latest revision as of 22:39, 13 February 2011
Author: Afrow UK (talk, contrib) |
Description
This is a script header based on code by Razor and DOCa Cola. I've taken the original code and converted it into macros. The cursor is also now updated immediately without having to move the mouse cursor.
Note: This uses the System.dll plugin.
Usage
!include SetCursor.nsh
Include the script header. This must be at the top of you installer script.
${SetSystemCursor} [cursor_id]
[cursor_id] can be one of the following:
- OCR_NORMAL
- OCR_IBEAM
- OCR_WAIT
- OCR_CROSS
- OCR_UP
- OCR_SIZENWSE
- OCR_SIZENESW
- OCR_SIZEWE
- OCR_SIZENS
- OCR_SIZEALL
- OCR_NO
- OCR_HAND
- OCR_APPSTARTING
${SetFileCursor} [cursor_file]
[cursor_file] must be the full or relative path to a .CUR or .ANI file.
Examples
${SetSystemCursor} OCR_CROSS ${SetFileCursor} 'my_cursor.ani'