Jump to content

Recommended Posts

Posted (edited)

because I do not get to click on buttons?

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Talisman Of Cratos Laucher", 523, 356, 340, 333)
$Pic2 = GUICtrlCreatePic("Sem títuloh.bmp", 0, 0, 522, 355, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
$Button1 = GUICtrlCreateButton("Button1", 16, 152, 161, 81, BitOR($BS_BITMAP,$WS_GROUP))
GUICtrlSetImage(-1, "buttonforum.bmp", -1)

$Button2 = GUICtrlCreateButton("Button2", 16, 232, 161, 81, BitOR($BS_BITMAP,$WS_GROUP))
GUICtrlSetImage(-1, "button jogar.bmp", -1)

#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        case $button2
            Run(@Comspec & ' /c "client.exe" ur;name=test;ip=190.72.177.137;port=8888', "", @SW_HIDE)
exit
        case $button1
             shellexecute("site.com")

    EndSwitch
WEnd
Edited by chorao157
Posted

Create the Pic control AFTER the other controls and disable it. From the help file under GuiCtrlCreatePic():

If a picture is set as a background picture, as the other controls will overlap, it's important to disable the pic control and create it after the others controls: GuiCtrlSetState(-1,$GUI_DISABLE).

;)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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
×
×
  • Create New...