MrNymous Posted May 30, 2010 Share Posted May 30, 2010 Hay Guys... Something strange happend to me.. Well , a'm working on a recconect script (very easy .. i thought) First i started the MS Telenet Client Run("telnet.exe") I searched fpr the Win in a while loop if WinExists("[CLASS:ConsoleWindowClass]","") Waited for the Win... WinWaitActive("[CLASS:ConsoleWindowClass]","") Send my Command ControlSend("[CLASS:ConsoleWindowClass]","","","open 192.168.1.1") Pressed Enter ControlSend("[CLASS:ConsoleWindowClass]","","","{ENTER}") And waited Sleep($pause) Well ... the thing that made my cry is the answer of the CMD ... (Wrong command or syntax ... ) When i type this in manually it works .... http://www.abload.de/image.php?img=unbenanntaw13.png Can someone help me ... A'm going crazy.. Link to comment Share on other sites More sharing options...
FuryCell Posted May 30, 2010 Share Posted May 30, 2010 (edited) Maybe it would be easier to use the STD functions to deal with telnet. Give me a few mins and I'll see if I can whip up a prototype.Edit:On Windows 7 telnet.exe is not installed by default so I can't do it.Edit2:Check this out also. Edited May 30, 2010 by FuryCell HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Juvigy Posted June 1, 2010 Share Posted June 1, 2010 This works for me on XP v 3.3.0.0 Run("telnet.exe") Sleep(1000) ControlSend("[CLASS:ConsoleWindowClass]","","","open 192.168.1.1") ControlSend("[CLASS:ConsoleWindowClass]","","","{ENTER}") Link to comment Share on other sites More sharing options...
MrNymous Posted June 3, 2010 Author Share Posted June 3, 2010 Well thats Wrong u got Telenet in Windows called Telnet there... ...mhm try it... run telnet.exe 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