Skip to content
⌘ NSIS Forum Archive

Execute function after showing the page

7 posts

JohaViss#

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#
If not, is the a timer to start after a few seconds?
JohaViss#
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#
The macro variant takes the name of the function - it uses GetFunctionAddress internally 🙂