Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run Macro Upon Receiving Email
#2
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:

Code:
Copy      Help
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=0

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).


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)