Jump to content
Sign in to follow this  
themax90

Getting info from a command line app

Recommended Posts

themax90

Run("telnet smtpserver 110", "", @SW_SHOW)
MouseClick("left", 384, 274, 1, 0)
sleep(1200)
Send("User user{enter}")
sleep(200)
Send("Pass password{enter}")
sleep(200)
Send("list{enter}")
$info = WinGetText ( "Telnet smtpserver")
sleep(2000)
FileOpen("test", 1)
FileWriteLine("test", $info)
FileClose("test")
;$file = FileRead("test", 1)
;If $file = 0 Then
;   MsgBox(0,"No new messages", "You have no new email messages")
;ElseIf $file <= 1 Then
;   MsgBox(0,"NEW MESSAGES!", "You have " & $file & " new messages")
;EndIf
;FileDelete("test")
WinClose("Telnet smtpserver")

;How do I get the information from a commmand line window so that I can verify if the server says +OK (number) messages?

How do I get the information from a commmand line window so that I can verify if the server says +OK (number) messages?

Edited by Agent Smith

Share this post


Link to post
Share on other sites
Andre

Hi,

Too Bad, Telnet output can't be captured with AutoIt. Try for yourself with the Spy.....

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites
themax90

Do you know how I can use VBS to connect to a pop3 server and retreive the data then?

Share this post


Link to post
Share on other sites
SumTingWong

Do you know how I can use VBS to connect to a pop3 server and retreive the data then?

<{POST_SNAPBACK}>

Use the new TCP functions in Larry's AU3Xtra.dll?

Same goes for those wanting to capture TELNET sessions as well.

Share this post


Link to post
Share on other sites
themax90

Can someone code a sample script to help?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×