Jump to content

Recommended Posts

Posted

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?

  • Moderators
Posted

$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.

  • Moderators
Posted

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.

Posted

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?

  • Moderators
Posted

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.

Posted

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.

  • Moderators
Posted

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.

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
  • Recently Browsing   0 members

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