AutoHotkey Community

It is currently May 26th, 2012, 8:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Mailinator Notifier
PostPosted: August 30th, 2009, 9:45 am 
Offline

Joined: November 6th, 2008, 7:43 pm
Posts: 26
Script to check your mailinator inbox and tell you if/how many emails you have.

Code:
#Persistent
FileInstall, m8r-yes.ico, m8r-yes.ico
FileInstall, m8r-no.ico, m8r-no.ico
Menu, Tray, Tip, M8r notifier: Checking...
Menu, Tray, NoStandard
Menu, Tray, Add, Check, Check
Menu, Tray, Add, Open Mail, OpenMail
Menu, Tray, Add, Exit, Exito

Check:
msg := 0
urldownloadtofile, http://mailinator.com/maildir.jsp?email=ahktest, %a_temp%/m8r

Loop, Read, %A_Temp%/m8r
{
IfInString, A_LoopReadLine, <tr><td colspan=2>No messages for ahktest</td></tr>, Break
IfInString, A_LoopReadLine, <tr><td bgcolor=, EnvAdd, msg, 1
}
FileDelete, %A_Temp%/m8r

if msg = 0
    Menu, Tray, Icon, m8r-no.ico
else
    Menu, Tray, Icon, m8r-yes.ico

Menu, Tray, Tip, M8r notifier: %msg% messages.

Return

OpenMail:
Run, http://mailinator.com/maildir.jsp?email=ahktest
Return

Exito:
ExitApp


If you don't want to bother with making icons, you can comment those lines out, obviously. It doesn't need them, they just make it prettier.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Blackholyman and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group