GUI Event Buttons Problem

5 posts in this topic

McGod 0

Ok, so I'm making a login etc, and I seem to have a Event Button Problem. My first GUI (Connecting GUI) buttons work fine. I go through that gui use a GUIDelete () Then run the second GUI, though I click on the button but nothing happens :\ I'm using Events.

I was hiding the main window initially, moved to setting oneventmode to 0 and then 1 again within the function, I tried to disable the original window, and then decided to try and just delete the original gui (the above example shows)... none of the 4 above methods worked for myself. It's like it's not letting go of the first GUI handle.

Edit:

Oh... lol - My solution was to disable OnEventMode when I went to my sub gui, and switch to GUIGetMsg() and switch/endswitch. Then Enable OnEventMode upon my return to the original GUI.

Edited September 16, 2006 by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Link to post

Share on other sites

SmOke_N 178

GUI 1 loaded GUI 2 using an OnEvent, which meant my whole script was interupted after i loaded GUI 2.

So i loaded all my guis at the beginning and use States. Works fine

Yeah, that's a tad inconvenient I think for me, I'll stick to good old GUIGetMsg() for Multiples, or maybe the work around I stated above if I'm feeling frisky.... I am thinking I remember Valik saying something about this several months ago, but I can't remember where the thread was or when it was for that matter.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]