quote:
Originally posted by messenpost
but INSIDE messenger this seems to be different. it does update in REALTIME. (unless i make a mistake - if so please correct me)
Only if you use a hotmail/msn address and in that case you can try to monitor the registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UnreadMail\
<Your Windows Live Id>\MessageCount
for a drop in its value.
For this you can use a program like SysInternals'
Regmon.
(and set "HKCU\Software\Microsoft\Windows\CurrentVersion\UnreadMail\<Your Windows Live Id>\MessageCount" as its include filter)
You could also monitor it with a script, but this requires some advanced Windows API calls (since you need to make it asynchronously or you'll lock up Messenger). Currently I haven't the time to make such a script, eventhough it would be a relative small.
You could also make the script by using a simple registry read and a timer, but then you need to be very careful, since such a script could lock your Messenger.
--
Attached is a small script which uses the timer approach, use at your own risk. I hope it works, I'm in a big hurry....