MagickCrafter Posted June 15, 2006 Share Posted June 15, 2006 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 Link to comment Share on other sites More sharing options...
Paulie Posted June 15, 2006 Share Posted June 15, 2006 I'm sure its possible, but what do you use to check you mail? Outlook Thunderbird MSN AOL What? Link to comment Share on other sites More sharing options...
Don N Posted June 15, 2006 Share Posted June 15, 2006 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 Link to comment Share on other sites More sharing options...
MagickCrafter Posted June 15, 2006 Author Share Posted June 15, 2006 As for the first post, I use outlook, sry bout not specifying. As for the second, I'm looking into IE.au3 now ty, but I kinda wanted to make my own script. Link to comment Share on other sites More sharing options...
piccaso Posted June 15, 2006 Share Posted June 15, 2006 (edited) if you have pop3 supported you could use the TCP* functions... if its web based it will be a little harder (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 June 15, 2006 by piccaso CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
MagickCrafter Posted June 15, 2006 Author Share Posted June 15, 2006 if you have pop3 supported you could use the TCP* functions...if its web based it will be a little harder (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 Looking into it now, thank you =) Link to comment Share on other sites More sharing options...
MagickCrafter Posted June 16, 2006 Author Share Posted June 16, 2006 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! Link to comment Share on other sites More sharing options...
getmo96 Posted December 28, 2007 Share Posted December 28, 2007 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. Link to comment Share on other sites More sharing options...
therks Posted December 28, 2007 Share Posted December 28, 2007 Here's an old thread where this was discussed. I don't think there's anything there that actually works, but you might get some ideas. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
therks Posted December 29, 2007 Share Posted December 29, 2007 And here's a piece of code that actually works! It's pretty dirty though... expandcollapse popupTCPStartUp() 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 My AutoIt Stuff | My Github 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