Jump to content

Getting info from a command line app


themax90
 Share

Recommended Posts

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
Link to comment
Share on other sites

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!
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...