What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » The data necessary to complete this operation is not yet available

The data necessary to complete this operation is not yet available
Author: Message:
citricsquid
New Member
*

<div style="sexy;100%">

Posts: 13
33 / Male / Flag
Joined: Sep 2008
O.P. RE: RE: The data necessary to complete this operation is not yet available
quote:
Originally posted by Matti
Now that is very strange! :S

Could you please post your complete code here, preferably in [code]...[/code] tags?

Sure thing.
Bear in mind it's only basic at the moment and very insecure :) There probably has been a major oversight on my part, the script is being hacked together with guesses of how Jscript works when I don't have the code from that tutorial :P

When I run a message through the script:

code:
Script is starting
Script is now loaded and ready
Function called: OnEvent_ChatWndSendMessage
1


jscript code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
  for(var e = new Enumerator(ChatWnd.Contacts);!e.atEnd();e.moveNext()){
    rEmail = (e.item().Email);
    }
    // return Email;
    // ^ use to echo contacts email address
    // return Messenger.MyName;
    // ^ use to echo current users name

if(Message.substr(0, 2) === "+1") {
var name = Messenger.MyName;
var gEmail = Messenger.MyEmail;
var rMessage = (name + ' has rewarded you with a +1!');

// database call

var url = "http://plusone.samryan.co.uk/test.php";
var data = ('rEmail= ' + rEmail + '&gEmail=' + gEmail);

Interop.Call("wininet.dll", "DeleteUrlCacheEntryW", url);
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", url, true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.setRequestHeader("Content-length", data.length);
xmlhttp.send(data);

xmlhttp.onreadystatechange = function () {
   if (xmlhttp.readyState == 4)
      if (xmlhttp.status == 200) {
         // Data from URL was retrieved successfully
         // Data is saved in the variable xmlhttp.responseText
      } else {
         // The server returned an HTTP code other than 200
   }
}
// end database call
return xmlhttp.responseText;
// else

}else{
return Message;
}

      Debug.Trace(xmlhttp.readyState);
//  ending of script
}
11-16-2008 11:34 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
The data necessary to complete this operation is not yet available - by citricsquid on 11-15-2008 at 08:02 PM
RE: The data necessary to complete this operation is not yet available - by Matti on 11-15-2008 at 08:24 PM
RE: RE: The data necessary to complete this operation is not yet available - by citricsquid on 11-15-2008 at 08:40 PM
RE: The data necessary to complete this operation is not yet available - by Matti on 11-16-2008 at 09:59 AM
RE: RE: The data necessary to complete this operation is not yet available - by citricsquid on 11-16-2008 at 11:34 AM
RE: The data necessary to complete this operation is not yet available - by Matti on 11-16-2008 at 01:34 PM
RE: The data necessary to complete this operation is not yet available - by citricsquid on 11-16-2008 at 02:03 PM
RE: The data necessary to complete this operation is not yet available - by citricsquid on 11-16-2008 at 03:03 PM
RE: The data necessary to complete this operation is not yet available - by Matti on 11-16-2008 at 03:35 PM
RE: RE: The data necessary to complete this operation is not yet available - by citricsquid on 11-16-2008 at 03:42 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On