xbarns
18th August 2011 11:18 UTC
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 :)
Anders
18th August 2011 20:13 UTC
OCR_WAIT is not a valid value, try ${OCR_WAIT}
demiller9
18th August 2011 22:32 UTC
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
18th August 2011 23:25 UTC
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
>
xbarns
19th August 2011 07:10 UTC
Thanks a lot Anders, it works :) :up: