08-26-2005, 06:39 PM
This function runs all the time and launches macro "Macro150" whenever Outlook Express has new email. The function periodically looks for "You have new e-mail" tray icon. Works on Windows XP.
Function OE_new_mail_trigger:
To run this function when QM starts, insert this in function init2:
mac "OE_new_mail_trigger"
Alternatively, you can create a function that checks for new messages on POP3 server.
Similarly you can create a "text in a web page" trigger. Instead of looking for tray icon (acc), look for particular text in web page (htm).
Function OE_new_mail_trigger:
int is
rep
,1
,Acc a=acc("You have new e-mail" "PUSHBUTTON" "+Shell_TrayWnd" "ToolbarWindow32")
,if(a.a)
,,if(!is)
,,,is=1
,,,mac "Macro150"
,else is=0To run this function when QM starts, insert this in function init2:
mac "OE_new_mail_trigger"
Alternatively, you can create a function that checks for new messages on POP3 server.
Similarly you can create a "text in a web page" trigger. Instead of looking for tray icon (acc), look for particular text in web page (htm).
