Archive: SetCursor in nsDialogs Leave Function


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 :)


OCR_WAIT is not a valid value, try ${OCR_WAIT}


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.


This seems to work for me:


LeaveFunc

System
::Call 'USER32::LoadCursor(i,i ${OCR_NO})i.s'
>System::Call 'USER32::SetCursor(is)'

>Sleep 5555

FunctionEnd
>

Thanks a lot Anders, it works :) :up: