Jump to content

Delete Gui Icon


 Share

Recommended Posts

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

  • Moderators

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

  • Moderators

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...