Jump to content

Recommended Posts

Posted

#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

Posted (edited)

A: The cmd run = @HIDE so you can click it all day and wont see anything.

This will only hide the cmd window, not what it runs, client.exe will still be visible, provided it has a gui.

Edited by maqleod
[u]You can download my projects at:[/u] Pulsar Software
Posted

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?

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