SetCursor Script Header: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
 
No edit summary
Line 26: Line 26:


<highlight-nsis>${SetFileCursor} [cursor_file]</highlight-nsis>
<highlight-nsis>${SetFileCursor} [cursor_file]</highlight-nsis>
[cursor_file] must be the full or relative path to a .CUR or .ANI file.
'''[cursor_file]''' must be the full or relative path to a .CUR or .ANI file.


== Examples ==
== Examples ==


<highlight-nsis>${SetSystemCursor} OCR_CROSS
<highlight-nsis>${SetSystemCursor} OCR_CROSS

Revision as of 17:08, 12 April 2006

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.

Usage

${SetSystemCursor} [cursor_id]

[cursor_id] can be one of the following:

  1. OCR_NORMAL
  2. OCR_IBEAM
  3. OCR_WAIT
  4. OCR_CROSS
  5. OCR_UP
  6. OCR_SIZENWSE
  7. OCR_SIZENESW
  8. OCR_SIZEWE
  9. OCR_SIZENS
  10. OCR_SIZEALL
  11. OCR_NO
  12. OCR_HAND
  13. 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'

Download

File:SetCursorHeader.zip