Old 14th June 2004, 11:30   #1
Dubbie
Junior Member
 
Join Date: May 2004
Posts: 3
Question 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
Dubbie is offline   Reply With Quote
Old 14th June 2004, 11:44   #2
flizebogen
Senior Member
 
Join Date: Jan 2002
Location: Berlin
Posts: 172
Neither the builtin command nor the messagebox plugin (http://nsis.sourceforge.net/archive/...php?pageid=370) can do this.

Sorry
flizebogen is offline   Reply With Quote
Old 14th June 2004, 15:17   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 14th June 2004, 20:31   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
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.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 14th June 2004, 21:33   #5
Shea
Junior Member
 
Join Date: Jan 2004
Posts: 39
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.
Shea is offline   Reply With Quote
Old 14th June 2004, 23:47   #6
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
No shea, I didn't.... the only plugin with the messagebox feature customize is the link posted by flizebogen in this topic.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 14th June 2004, 23:57   #7
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
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.

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 17th October 2005, 22:35   #8
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
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.
Yathosho is offline   Reply With Quote
Old 17th October 2005, 22:44   #9
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
So... the general idea is a MessageBox that will autoclose in user defined time?


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 17th October 2005, 23:37   #10
DrO
 
Join Date: Sep 2003
Posts: 27,873
Quote:
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
DrO is offline   Reply With Quote
Old 18th October 2005, 08:56   #11
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
Quote:
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 is offline   Reply With Quote
Old 18th October 2005, 08:59   #12
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
Quote:
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 is offline   Reply With Quote
Old 20th October 2005, 10:54   #13
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
Yathosho is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump