chorao157 Posted September 8, 2010 Share Posted September 8, 2010 #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 More sharing options...
JohnOne Posted September 9, 2010 Share Posted September 9, 2010 I do not get to meet the Queen. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Dreu Posted September 9, 2010 Share Posted September 9, 2010 A: The cmd run = @HIDE so you can click it all day and wont see anything. B: You can't shellexecute a web address -.- Link to comment Share on other sites More sharing options...
JohnOne Posted September 9, 2010 Share Posted September 9, 2010 B: You can't shellexecute a web addressI think you will find you can, it will open in default browser. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
maqleod Posted September 9, 2010 Share Posted September 9, 2010 (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 September 9, 2010 by maqleod [u]You can download my projects at:[/u] Pulsar Software Link to comment Share on other sites More sharing options...
Tvern Posted September 9, 2010 Share Posted September 9, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now