- NSIS Discussion
- Messagebox countdown to default to a particular response
Archive: Messagebox countdown to default to a particular response
Dubbie
14th June 2004 12:30 UTC
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
flizebogen
14th June 2004 12:44 UTC
Neither the builtin command nor the messagebox plugin (http://nsis.sourceforge.net/archive/...php?pageid=370) can do this.
Sorry
Anders
14th June 2004 16:17 UTC
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
Joel
14th June 2004 21:31 UTC
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.
Shea
14th June 2004 22:33 UTC
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.
Joel
15th June 2004 00:47 UTC
No shea, I didn't.... the only plugin with the messagebox feature customize is the link posted by flizebogen in this topic.
deguix
15th June 2004 00:57 UTC
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.
Yathosho
17th October 2005 23:35 UTC
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.
Joel
17th October 2005 23:44 UTC
So... the general idea is a MessageBox that will autoclose in user defined time?
DrO
18th October 2005 00:37 UTC
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
Yathosho
18th October 2005 09:56 UTC
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
Yathosho
18th October 2005 09:59 UTC
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..
Yathosho
20th October 2005 11:54 UTC
:rolleyes: