Old 18th January 2007, 06:28   #1
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
Dialog Window Timeout

Hi,

I create a custome dialog and display, no problems..

However I only want this window to be open for say 1 minute, after which the program catches the timeout and sets and error, SetErrorLevel 108 and then calls Abort, as it faild.



1 InstallOptions::dialog $PLUGINSDIR\InstOptions.ini
2 Pop $R1
3 StrCmp $R1 "cancel" done
4 StrCmp $R1 "back" done
5 StrCmp $R1 "success" done
6 error: MessageBox MB_OK|MB_ICONSTOP "InstallOptions error:$\r$\n$R1"
7 done:


Is my code, I can't get get time time before line 1 nd between 1 and 2 and then compare as it never gets to 2 until the dialog exits.... (which it wont if it never times out)

Nniol
Nniol is offline   Reply With Quote
Old 18th January 2007, 06:44   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Could you be more specific on that?
You want to display the dialog and if there is not user's interaction for a specific period the dialog should be killed?
Is this what you mean?

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 18th January 2007, 06:46   #3
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
Yes, exactly that.
Nniol is offline   Reply With Quote
Old 18th January 2007, 07:29   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
hmm, dialog is static, if no button is pressed nor a control with notify flag, there is no action after the plugin call, actions performed once the notify flag has been set.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 18th January 2007, 08:22   #5
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
The attached example is able to do what you want, tricky though
edit: Just performed a bit tuning to the attached example
Attached Files
File Type: zip test.zip (84.8 KB, 200 views)

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS

Last edited by Red Wine; 18th January 2007 at 10:58.
Red Wine 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