Archive: Execute function after showing the page


Execute function after showing the page
Hello,

I have a custom page, and I want to execute an external function after the page is shown.
I am using nsDialogs.
It seems that every function call after 'nsDialogs::Show' is ignored.
If I call the function inside the nsDialogs create part, the screen isn't displayed until the function call is finished.

The big problem is, that the function call takes between 10 and 30 minutes.

Can I execute a function right after the page is shown?
If not, is the a timer to start after a few seconds?

Regards
Johan Visser


If not, is the a timer to start after a few seconds?
http://nsis.sourceforge.net/Docs/nsD...ef-createtimer

Sorry, missed the whole timer stuff.
I was expecting it to be a general NSIS function, not a nsDialogs function.

The timer works. (More or less)

This is not working. (Not even compiling)
${NSD_CreateTimer} $functionAddress 2000
It gives error:
Error: resolving install function "$functionAddress" in function "DatabaseUpdateInit"


This works.
nsDialogs::CreateTimer $functionAddress 2000

$functionAddress is a global variable.


The macro variant takes the name of the function - it uses GetFunctionAddress internally :)


But that is not what the documentation says.
There both function uses function_address


well.. the documentation is mistaken ;)


(Bug report has already been submitted.)