Skip to content
⌘ NSIS Forum Archive

SetCursor in nsDialogs Leave Function

5 posts

xbarns#

SetCursor in nsDialogs Leave Function

Hi all,

i discovered this nice SetCursor Script header (http://nsis.sourceforge.net/SetCursor_Script_Header).

I try using it in the Leave Function of a nsdialogs page, since there are some things checked and it might take a few seconds to display the next page.

Sadly it does not seem to work...

Function LeaveFunc
${SetSystemCursor} OCR_WAIT

checkCode....


${SetSystemCursor} OCR_NORMAL
FunctionEnd

Any ideas?

Thanks in advance 🙂
demiller9#
The macro uses double references ( ${${OCR_...}} ) to handle OCR_WAIT correctly. But I didn't get the code to work earlier today when I tried it. The cursor only changed when the next page appears, not during the time 'between' pages.
Anders#
This seems to work for me:

Function LeaveFunc
System::Call 'USER32::LoadCursor(i,i ${OCR_NO})i.s'
System::Call 'USER32::SetCursor(is)'
Sleep 5555
FunctionEnd