The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: gavin on August 27, 2005, 02:20:22 PM

Title: msn buddy signed in log to file etc
Post by: gavin on August 27, 2005, 02:20:22 PM
Hi guys.

I'm was wondering how would i go about the following.

You know the way icons appear telling you your buddy has signed in to msn messenger.

How would i log to a file who logged in ?

Is their some api's you could tell me about please.

Thank you.
Title: Re: msn buddy signed in log to file etc
Post by: P1 on August 29, 2005, 01:19:55 PM
Try the Open Source route.  See how they do it and re-code to MASM from there.

Regards,  P1  :8)
Title: Re: msn buddy signed in log to file etc
Post by: htek on August 30, 2005, 08:59:15 AM
hmm,

i'm not _SURE_ this method would work with the latest msn, but it did with an earlier version of trillian. it takes a  little coding though - just keep scanning for new windows by window name and class name (because it's a window...1!!) and then enumerate the controls on that window, and you'll come across a text thing, and u scan all the text things for "has signed in" - or that's what it was with trillian. i think it won't be too much different on msn...

and then log the entire string to file, or filter out the name...

cheers,


h

PS - maybe use CompareString instead of lstrcmp, because you can specify case insensitive matching :o