Archive: Messagebox countdown to default to a particular response


Messagebox countdown to default to a particular response
Hi,

I need to try and create a countdown to a message box. This is what I have.

I have a message box come up with a yes/no selection value but I want the yes option to be selected by default after 60 seconds have gone. Is there anyway to do this using a message box??

Thanks


Neither the builtin command nor the messagebox plugin (http://nsis.sourceforge.net/archive/...php?pageid=370) can do this.

Sorry


this is possible, but not with pure nsis code, u need to create a plugin (might b possible with the system plugin)

take a look at this code on how to "take over" the msgbox: http://www.catch22.org.uk/tuts/msgbox.asp


Oh Yes! You need to hooked the messagebox. As posted before you need to create the plugin or do hard coding with the system plugin.


Lobo, didn't you already make a plugin for this? For some reason I remember someone making a plugin to do this sort of thing and I think it was you.


No shea, I didn't.... the only plugin with the messagebox feature customize is the link posted by flizebogen in this topic.


This gave me an idea.... You could change the UI resource to a format of a MessageBox, and create a page with InstallOptions with any control you want. And you can create another program to wait the number of seconds and close the MessageBox at the time you want. Just use the imagination and you can put this working fine.


i was looking for something like that myself: a countdown in a messagebox, with the DEFBUTTON pressed on termination.

independently from that, i'd like to inform the creator of the messagebox plugin, that IDNO and IDYES only work using the english translations.


So... the general idea is a MessageBox that will autoclose in user defined time?


Originally posted by Yathosho
independently from that, i'd like to inform the creator of the messagebox plugin, that IDNO and IDYES only work using the english translations.
either i'm just half asleep (which is a fair chance) but i'm not quite following you (and on a note i really need to track down the source for the plugin on my old box and try to get some work done on it as i've been meaning to for months...)

-daz

Originally posted by Joel
So... the general idea is a MessageBox that will autoclose in user defined time?
yup, but with a counter being displayed in the messagebox

Originally posted by DrO
either i'm just half asleep (which is a fair chance) but i'm not quite following you
nevermind, i get the same behaviour with normal messageboxes. i think i have modified my locale registry key. will test it in a german installation..

:rolleyes: