D4rk^S0ul Posted February 11, 2006 Share Posted February 11, 2006 I was wonding if its possible to delete a gui icon that i have created earlier in the code so i can use it again, is this possible? Or will i have to hide it and use a new defination? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 11, 2006 Moderators Share Posted February 11, 2006 $Icon = GuiCtrlCreateIcon() GUICtrlDelete($Icon) 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. Link to comment Share on other sites More sharing options...
D4rk^S0ul Posted February 11, 2006 Author Share Posted February 11, 2006 (edited) I have a problem with Guictrldelete, it seems i cant recreate it, it just doesnt apear? Edited February 11, 2006 by D4rk^S0ul Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 11, 2006 Moderators Share Posted February 11, 2006 Have a reproduction script to play with? 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. Link to comment Share on other sites More sharing options...
D4rk^S0ul Posted February 11, 2006 Author Share Posted February 11, 2006 Case $msg = $Button_3 $Icon_3 = GUICtrlCreateIcon ("C:\Documents and Settings\System User\My Documents\Game\Bombs.ico",-1, $Ship, 170,32,32) While $Bombs > 25 $Bombs = $Bombs - 1 GUICtrlSetPos($Icon_3, $Ship, $Bombs) Sleep(10) WEnd $Bombs = 170 GUICtrlDelete ($Icon_3) EndSelect I got the delete and create working again i forgot to redefine bombs back to original, but is there any u can think of that i can press the other buttons wial this icon is still moving? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 11, 2006 Moderators Share Posted February 11, 2006 You would have to use GUIGetMsg() / and the buttons like you did before the loop inside that loop. 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. Link to comment Share on other sites More sharing options...
D4rk^S0ul Posted February 11, 2006 Author Share Posted February 11, 2006 Thx, Is there a way to set 1 icon under another? Link to comment Share on other sites More sharing options...
D4rk^S0ul Posted February 11, 2006 Author Share Posted February 11, 2006 I tryed using , $GUI_SS_DEFAULT_ICON, $WS_EX_TOPMOST on the original i want to stay ontop but it doesnt seem to work the icon after that still covers it. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 11, 2006 Moderators Share Posted February 11, 2006 I tryed using , $GUI_SS_DEFAULT_ICON, $WS_EX_TOPMOST on the original i want to stay ontop but it doesnt seem to work the icon after that still covers it.did you try GUICtrlSetData($icon, $GUI_DISABLE)? (For the icon before the one you want to have on top) 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now