JohaViss
10th September 2010 08:47 UTC
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
Animaether
10th September 2010 09:08 UTC
If not, is the a timer to start after a few seconds?
http://nsis.sourceforge.net/Docs/nsD...ef-createtimerJohaViss
10th September 2010 11:09 UTC
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.
Animaether
10th September 2010 11:31 UTC
The macro variant takes the name of the function - it uses GetFunctionAddress internally :)
JohaViss
10th September 2010 11:51 UTC
But that is not what the documentation says.
There both function uses function_address
Animaether
10th September 2010 12:18 UTC
well.. the documentation is mistaken ;)
MSG
10th September 2010 13:34 UTC
(Bug report has already been submitted.)