Nakuribon 0 Posted December 18, 2004 (edited) hey peeps, i'm new to this forum, and for my first post in a while, i have a question for you all: in my script, i have this code:Case $msg[1] = $instextdlg and $msg[0] = $GUI_EVENT_CLOSE GUIDelete() Case $msg[1] = $insicondlg and $msg[0] = $GUI_EVENT_CLOSE GUIDelete() Case $msg[1] = $addimgdlg and $msg[0] = $GUI_EVENT_CLOSE GUIDelete() but when i have more than one of these windows open, only one of them closes and thats the last one i opened.... like if i opened Insert Text then Add Image and then hit close on Insert Text, Add Image would close, and not Insert Text, and then when i try to hit close again, nothing happens...... if ya need the full code tell me, thanx for ur help! ~naku Edited December 18, 2004 by Nakuribon i own this sig... php rulezlinks:My PSP Web Portal Share this post Link to post Share on other sites
Jon 1,009 Posted December 18, 2004 hey peeps, i'm new to this forum, and for my first post in a while, i have a question for you all: in my script, i have this code:Case $msg[1] = $instextdlg and $msg[0] = $GUI_EVENT_CLOSE GUIDelete() Case $msg[1] = $insicondlg and $msg[0] = $GUI_EVENT_CLOSE GUIDelete() Case $msg[1] = $addimgdlg and $msg[0] = $GUI_EVENT_CLOSE GUIDelete()but when i have more than one of these windows open, only one of them closes and thats the last one i opened.... like if i opened Insert Text then Add Image and then hit close on Insert Text, Add Image would close, and not Insert Text, and then when i try to hit close again, nothing happens...... if ya need the full code tell me, thanx for ur help!~nakuGUIDelete() closes the currently active window - by default the active window is the last window created. Use GuiSwitch() to select a different window manually before doing the GuiDelete(). Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
Nakuribon 0 Posted December 18, 2004 k ill try that thanx i own this sig... php rulezlinks:My PSP Web Portal Share this post Link to post Share on other sites