Shoutbox

Getting the "What I Am Listening to Now" as a variable in VB or C++ - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Getting the "What I Am Listening to Now" as a variable in VB or C++ (/showthread.php?tid=72519)

Getting the "What I Am Listening to Now" as a variable in VB or C++ by jasonallen on 03-10-2007 at 03:11 PM

Hi there,

I was wondering how you would go about getting the "What I Am Listening to Now" as a variable in VB or C++. I want to display this on a webpage. If MsgPlus is able to look at it for notifications it must be stored somewhere in memory.

Can anyone help me on this?

Thanks.
Jason.


RE: Getting the "What I Am Listening to Now" as a variable in VB or C++ by the DtTvB on 03-11-2007 at 11:39 AM

I think it would be hard to get it in VB or C.
But..... you can export!

For example, consider this code:

code:
function create_xh() {
try { return new ActiveXObject("Microsoft.XMLHTTP"); }
catch ( e ) {
try { return new ActiveXObject("Msxml2.XMLHTTP"); }
catch ( e ) { return false; }
}
}

is used to create an XMLHttpRequest object
(the same one used in web to make ajax requests)


Then, create a GET request to a URL.. For example your website is located at http://127.0.0.1/ and you make a file called setmypersonalmessage.php so the script can send the request to it.

code:
xh.open ('GET', 'http://127.0.0.1/setmypersonalmessage.php?' + 'password=abcdefg&s=' + encodeURI(Messenger.MyPersonalMessage), true);
xh.send ('');

The script in your web should be used to...
- check your password
- update the database wth the string recieved.

For example...
code:
<?php

if ($_GET['password'] == 'abcdefg') {
$fp = fopen('iamlistento.txt', 'w');
fwrite ($fp, $_GET['s']);
fclose ($fp);
}

?>


RE: Getting the "What I Am Listening to Now" as a variable in VB or C++ by jasonallen on 03-11-2007 at 06:33 PM

Wow

great idea, i'll give that a blast when i've got more time on my hands

cheers
jason