republican-creole
site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·How To Get Noticed ·Web Monks FAQ ·Webhosting FAQ ·Posting Code ·How To Post ·Webhosting forum
AuthorAll Replies


Johnny
Premium
join:2001-06-27
Atlanta, GA
kudos:1

reply to Johnny

Re: Faster cleaner instant message checking

said by johnnylundy:


Over at ATM we're trying to script a background process to query this page and somehow get a "yes" or "no" as to whether there are message(s) waiting.

Is there any way to programmatically get this info or is it limited to physically viewing the page that the URL generates?

TIA

Thanks to TomRC I found the answer - the images for the flashing letterbox and the nonflashing one have different names in the image server. We can use this programmatically to tell whether the IM is waiting or not.
--
>>Johnny


Gomez
Exile in waiting
Premium,Ex-Mod 06-11
join:2001-02-21
Atlanta, GA

Got this working as a native app. Here are the key things to get it working (in C):

#define REQUESTFMT "GET /instantcheck/%s HTTP/1.0\n\n"
%s will later be substituted with your user id. The string is the actual HTTP request you need to send. Note the HTTP spec requires two carriage returns.

#define IM_NO "SRC=\"http://i.dslr.net/bb/imsg1.gif\""
#define IM_YES "SRC=\"http://i.dslr.net/bb/imsg.gif\""
These are the strings to use to search the returned HTML.
--
Before you criticize a man, walk a mile in his shoes. Then criticize; You're a mile away, and you have his shoes.


Tuesday, 29-May 19:43:46 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics