Jump to content

Recommended Posts

Posted

here is some code...

im stuck though

#include <GUIConstants.au3>
#include <Constants.au3>

        $server = "telnet useast.battle.net 6112"
        $pinger = GUICreate("PiNg-0-MaTiC!", 350, 280)
        $hEdit = GUICtrlCreateEdit("", 5, 5, 300,)
        GUICtrlCreateLabel("Enter server", 5, 190)
        $hInput = GUICtrlCreateInput("", 5, 220,200)
        GUICtrlSetData($hInput, $server)
        $buttonz = GUICtrlCreateButton("GO", 107, 250, 50, 20)
        GUICtrlSetState($hInput, $GUI_FOCUS)
        GUISetState()
        $PID = 0
        While 1
            $msg = guigetmsg()
            $data = StdoutRead ($PID, 0, 1)
            If $data Then
                While 1
                    $line = StdoutRead ($PID)
                    If @error = -1 Then ExitLoop
                    GUICtrlSetData($hEdit, $line, 1)
                WEnd
                GUICtrlSetData($hInput, $box)
                GUICtrlSetState($hInput, $GUI_FOCUS)
            EndIf
            Select
                Case $msg = $buttonz
                    $box = GUICtrlRead($hInput)
                    GUICtrlSetData($hInput, "")
                    $PID = Run(@ComSpec  & " " & $box, @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
                    GUICtrlSetState($hInput, $GUI_FOCUS)
                    
                Case $msg = $gui_event_close
                    Exit
                    EndSelect
WEnd

can anyone help me out?

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted

Microsoft telnet doesn't work with StdoutRead, I use Console Telnet instead.

Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

Posted (edited)

is there any other workaround?

i dont necissarily need to use std... i just need to login and then continuously read whats on the screen

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted (edited)

well dave, im trying out that program.

thing is, its different and is not working like expected.

i connect by entering op useast.battle.net 6112

normally in cmd prompt i would type netstat useast.battle.net 6112

so i figured that out.

but then normally after i connect, i press c in command prompt and it gives me prompt to enter username and pass.

but i hit c using this program and it disconnects me.

im still stuck

http://img85.imageshack.us/my.php?image=telnet5ze.png

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

  • 2 years later...

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