Jump to content

Recommended Posts

Posted

Is it possible to make a script to check if you have recieved a new email and displaying a msgbox or tooltip or whatever if you have recieved a new one?

If so, how would I do this? What would I do just check if a file has been recieved on the email server? If that is how, then what command could I use to do that?

Thanks guys! I am just looking for a couple of commands I'll do the script myself, just wondering how I could do something like this =) You are a great help, I love this forum,

MagickCrafter

Posted

Look at IE.au3, that will give you all the functionality u need to check ur email in IE.

Or if u want it real simple you could use sleep and send commands but id look at IE.au3.

_____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper

Posted (edited)

if you have pop3 supported you could use the TCP* functions...

if its web based it will be a little harder :D (do a google on 'Fiddler' its a proxy that shows you a raw http log and everything you need...)

edit:

didnt see your last post...

if you want to do it in the background only you have to find a way with the TCP* func's or wrap a tool like 'curl'...

Edited by piccaso
CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
Posted

if you have pop3 supported you could use the TCP* functions...

if its web based it will be a little harder :D (do a google on 'Fiddler' its a proxy that shows you a raw http log and everything you need...)

Its pop3 supported, I don't have one of those whacky free emails :D Looking into it now, thank you =)

Posted

That TCP stuff seems to be what I'm after, but holy crap is the helpfile articles for it confusing :D I live off of examples, could somebody kindly put a small example or explain a tcp function I would use? Thanks guys!

  • 1 year later...
Posted

That TCP stuff seems to be what I'm after, but holy crap is the helpfile articles for it confusing :) I live off of examples, could somebody kindly put a small example or explain a tcp function I would use? Thanks guys!

Did you ever get this to work? I am looking to do the same thing. I need to read imcoming messages and look for a term used, if used I need the program to excute a script i built for going into to oracle and assigning a ticket.

Posted

And here's a piece of code that actually works! It's pretty dirty though...

TCPStartUp()

ConsoleWrite('Connecting...' & @LF)
$socket = TCPConnect(TCPNameToIP('mail.therks.com'), 110)

ConsoleWrite('Connected...' & @LF)
$wait = WaitRecv($socket, '+OK')
If @error Then Exit MsgBox(16, 'Error', $wait)

TCPSend($socket, 'user autoit@therks.com' & @CRLF)
ConsoleWrite('Send user...' & @LF)
$wait = WaitRecv($socket, '+OK')
If @error Then Exit MsgBox(16, 'Error', $wait)

TCPSend($socket, 'pass jonbennett' & @CRLF)
ConsoleWrite('Send pass...' & @LF)
$wait = WaitRecv($socket, '+OK')
If @error Then Exit MsgBox(16, 'Error', $wait)

TCPSend($socket, 'list' & @CRLF)
$wait = WaitRecv($socket, '+OK')
If @error Then Exit MsgBox(16, 'Error', $wait)

MsgBox(64, '', $wait)

TCPShutdown()

Func WaitRecv($socket, $string, $size = 255)
    Local $recv, $recvStr, $instring
    Do
        $recv = TCPRecv($socket, $size, 1)
    Until $recv <> '' or @error

    If @error Then Return SetError(2, @error, False)

    $recvStr = BinaryToString($recv)
    $instring = StringInStr($recvStr, $string)
    If $instring Then
        Return SetError(0, 0, $recvStr)
    Else
        Return SetError(1, 0, $recvStr)
    EndIf
EndFunc

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
  • Recently Browsing   0 members

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