Jump to content

detect open lldialog ?!?!?!?


acomerlaaa Ibor
 Share

You are about to reply to a thread that has been inactive for 4447 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

If you use some kind of a flag to check if a dialog is already opened like it was suggested in other replies, you will not have more than one dialog open at a time so no need to be concerned with more than one.

I usually store user id (key) when the dialog opens and clear it (set to NULL_KEY) when it closes, but  a simple flag DIALOG = TRUE/FALSE would do just fine.

 

Link to comment
Share on other sites

If the dialog user presses the "ignore" button NO message is generated so the script does not know whether the dialog is open or not.

If a flag is used then it will flag the dialog open while it is closed. So you always need a timer to clean up. There is at least a listen to close. And in case of the above mentioned flag usage - nobody can use the dialog until the timer runs out.

You can add a "cancel" button of course but there is no guarantee that the "ignore" button isn't used so you have to be prepared for that.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4447 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...