Archive: Dialog Window Timeout


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


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?


Yes, exactly that.


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.


The attached example is able to do what you want, tricky though :)
edit: Just performed a bit tuning to the attached example :)