Berserker, sorry for my English I mean, I don't want the dialogue to pop up multiple times when I have one of the dialogue activated. Say you press F10 5 times, you only need to close one. But after you close the dialgoue, press F10 one more time and you will get the dialogue again. My code should satisfy the need in theory, but it doesn't work for some reasons - if you press F10 quickly (this is necessary!), you still get multiple IF:M dialogues