msn messenger idea/problem????
-
Im going to create an add-on to msn messneger client that among other things saves the history of a contacts state changes, i.e offline to online etc. I want to keep a log so that a profile can be built up over time (24hours) when a contact is online at times through out the day. So the user with that contact can see when the best time is to try and catch the contact online. The problem is, how to record state changes when the user is not online themselves. Thus keeping the information useful. I need some way of retreving state changes of contacts without the user being online. Then when the user signs into messenger the profile can be updated. Im not sure if its feasible, so i thought id put the problem on here.:confused: cheers for any comments mike
-
Im going to create an add-on to msn messneger client that among other things saves the history of a contacts state changes, i.e offline to online etc. I want to keep a log so that a profile can be built up over time (24hours) when a contact is online at times through out the day. So the user with that contact can see when the best time is to try and catch the contact online. The problem is, how to record state changes when the user is not online themselves. Thus keeping the information useful. I need some way of retreving state changes of contacts without the user being online. Then when the user signs into messenger the profile can be updated. Im not sure if its feasible, so i thought id put the problem on here.:confused: cheers for any comments mike
If you're not online... how are you going to know if anyone else is? Your app would have to keep the MSN client up and running 24 hours a day to know when other people are on... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
If you're not online... how are you going to know if anyone else is? Your app would have to keep the MSN client up and running 24 hours a day to know when other people are on... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Dave Kreskowiak wrote: Your app would have to keep the MSN client up and running 24 hours a day to know when other people are on... hmm, that gives me just a germ of an idea, but how about something like this: Create a web service on a dedicated server (maybe at a hosting facility, whatever). It would have a few methods: StartTrackingUser(UserName) GetUserStats(UserName) StopTrackingUser(UserName) When somebody wants to start tracking another user, they call your StartTrackingUser() function which creates an entry in the database and sets up a user for tracking. Then you have a service (or just a thread) running that reads your database and checks all of the users int there every X minutes to see if they are online. It then writes an approraite entry to the DB. (If the user was online but is not off, it can write "userX logged of at..." or visa-versa.) When you want to get the stats back form the server, just call your GetUserStats which compiles the stats (or gets them raw, whatever) from the database. Finally, when you want to stop tracking a person, your app calls StopTrackingUser(). This all depends on finding a hosting service that wil lallow you to run a scheduled task or a service or having a dedicated server at a static IP address.
-
Dave Kreskowiak wrote: Your app would have to keep the MSN client up and running 24 hours a day to know when other people are on... hmm, that gives me just a germ of an idea, but how about something like this: Create a web service on a dedicated server (maybe at a hosting facility, whatever). It would have a few methods: StartTrackingUser(UserName) GetUserStats(UserName) StopTrackingUser(UserName) When somebody wants to start tracking another user, they call your StartTrackingUser() function which creates an entry in the database and sets up a user for tracking. Then you have a service (or just a thread) running that reads your database and checks all of the users int there every X minutes to see if they are online. It then writes an approraite entry to the DB. (If the user was online but is not off, it can write "userX logged of at..." or visa-versa.) When you want to get the stats back form the server, just call your GetUserStats which compiles the stats (or gets them raw, whatever) from the database. Finally, when you want to stop tracking a person, your app calls StopTrackingUser(). This all depends on finding a hosting service that wil lallow you to run a scheduled task or a service or having a dedicated server at a static IP address.
pnjoyce wrote: This all depends on finding a hosting service that wil lallow you to run a scheduled task or a service or having a dedicated server at a static IP address. That'll cost you some serious coinage. Is the function of this thing really worth that kind of money? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome