t0ddie Posted January 26, 2006 Share Posted January 26, 2006 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. Link to comment Share on other sites More sharing options...
DaveF Posted January 26, 2006 Share Posted January 26, 2006 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. Link to comment Share on other sites More sharing options...
t0ddie Posted January 26, 2006 Author Share Posted January 26, 2006 (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 January 26, 2006 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
t0ddie Posted January 27, 2006 Author Share Posted January 27, 2006 (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 6112normally in cmd prompt i would type netstat useast.battle.net 6112so 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 stuckhttp://img85.imageshack.us/my.php?image=telnet5ze.png Edited January 27, 2006 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
t0ddie Posted January 27, 2006 Author Share Posted January 27, 2006 bumpy bumps Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
mbkowns Posted December 9, 2008 Share Posted December 9, 2008 (edited) Microsoft telnet doesn't work with StdoutRead, I use Console Telnet instead.Is it possible now to read output of windows telnet? Edited December 9, 2008 by mbkowns 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