|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
Forum King
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2006
Posts: 26
|
Yes, exactly that.
|
|
|
|
|
|
#4 |
|
Forum King
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 |
|
|
|
|
|
#5 |
|
Forum King
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
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|