Archive: Dyanamically showing custom pages


Dyanamically showing custom pages
Hello

I've four custom pages that I want to show in sequence, one after the other, with 5secs interval and without the user’s intervention. (I will be disabling the next button.) Help.


In your page defines area:


Page custom CustomPage1
Page custom CustomPage2
Page custom CustomPage3
Page custom CustomPage4


In your functions area:

Function CustomPage1
...your custom page code
Call Delay
FunctionEnd

Function CustomPage2
...your custom page code
Call Delay
FunctionEnd

Function CustomPage3
...your custom page code
Call Delay
FunctionEnd

Function CustomPage4
...your custom page code
Call Delay
FunctionEnd

Function Delay
Sleep 5000
FunctionEnd

Thank for the above fragment. I want to be able to automatically move from one custom page to another i.e. simulating the next button action without a user’s intervention.

At the moment the next custom page doesn’t show automatically unless the next button is clicked. I will be disabling the next button so it is important for me to be able to move automatically to the next page.

Thanks.


Hmm, that seemed to work for me when I tried quickly, but give this function a shot:
http://nsis.sourceforge.net/wiki/Go_to_a_NSIS_page


If I'm reading all correctly, it sounds like azbanu wants the pages to change automatically. In dienjd example, the pages will each have a 5 second delay, but only after the user clicks the 'next' button.

In the 2nd example plugin ( Go to a page), the user can be directed to any page out of order, but still the user has to click 'back' or 'next' to actually cause the page to change.

Sounds like what is needed is some type of built-in timer. Other than a plugin (which I haven't seen any), the only other suggestion I have is InstallOptionsEX. It has a 'TimeOut' setting you can apply to the page to allow you to automatically move to the page's validation function, allowing you to get out of the current page without having to wait for user input.