Jump to content

because I do not get to click on buttons?


 Share

Recommended Posts

#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

Link to comment
Share on other sites

Please do not post the same topic multiple times.

Try to write an example that demonstrates the problem without to much extra code. Your code does what I'd expect it to.

Your buttons are fine. I think your Run, or ShellExecute commands are badly formatted.

Try to describe your problem in detail. What do you want the code to do, what happens instead?

If you need to, use Google Translate. I guess you speak portugese?

Por favor, não postar o mesmo tópico várias vezes.

Tente escrever um exemplo que demonstra o problema, sem o código extra muito. Seu código faz o que eu esperava.

Seus botões são muito bem. Eu acho que o comando Run (), ou ShellExecute () está mal formatado.

Tente descrever o problema detalhadamente. O que você quer o código para fazer, o que acontece então?

Se precisar, use o Google Translate. Eu acho que você fala português?

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