Multi msgbox displayed

5 posts / 0 new
Last post
tryvltkcb
Offline
Joined: 10/25/2018 - 02:49
Multi msgbox displayed

Hi all,
I am writing my first IDEA script. I have searched many topics but could not find the solutions. My problem is msgbox displayed many times when users click on the button several times. In the pictures attached, when users click on Check Ready button 2 times, 2 msgbox will be displayed. Hope to hear from you soon!

Images: 
Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

Hi, if you watch this video it will show you how to get around this problem. https://www.youtube.com/watch?v=ge-XiX43KPg

 

tryvltkcb
Offline
Joined: 10/25/2018 - 02:49

Thanks for your response, Brian. I have watched it and applied for a part of my script as well. However, I would prefer not to create many new dialogs :( Is there any way to apply for Msgbox function not to display many times when a button clicked without creating new dialog for it? 

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

In the video it showed you how to create a flag (boolean variable) that will track when a dialog is open and if it is already open not open it again.  Is this what you are looking for?  

tryvltkcb
Offline
Joined: 10/25/2018 - 02:49

Thank you Brian. I did it xD. That's exactly what I am looking for.