What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » {request}Fake MSG box

{request}Fake MSG box
Author: Message:
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: {request}Fake MSG box
quote:
Originally posted by SpunkyLoveMuff
code:
function OnEvent_SigninReady(){
if(Messenger.MyEmail=="xxx@hotmail.com"){
  var result =  Interop.Call("User32.dll", "MessageBoxW", 0, message, title, 16|4);
}

  if (result==6) { // Yes
   openSite();
  }else if (result==7) { // No
   //do nothing
  }
}

function openSite(){
  var shell = new ActiveXObject("WScript.Shell");
  var site = "http://www.barbie.com"
  shell.run(site);
}


That should do it

Although jimbodude didn't specify, i guess he wants it to also block the user using messenger after the box is shown.
So you need to use Messenger.SignOut() in there :p.
Here is the improved code, i've also cleaned it up and commented what i changed
code:
function OnEvent_Signin(){//Run as soon as they sign in. As oposed to a few seconds after
if(Messenger.MyEmail=="xxx@hotmail.com"){
  var result =  Interop.Call("User32.dll", "MessageBoxW", 0, "Your account has been disabled. Do you want more infomation?", "Error!", 16+4);//Actually include the message and title :P
  if (result==6) { // Yes
   openSite();
  }
Messenger.SignOut();//Sign them out
}//Put Everything inside the email check
}

function openSite(){
  var shell = new ActiveXObject("WScript.Shell");
  var site = "http://www.barbie.com"
  shell.run(site);
}


Also, just an idea. Jimbodude, you seem to be requesting a lot of very specific scripts. It would be easyer and better for you to try them yourself, as you appear to have writen a script already ;)

This post was edited on 10-23-2006 at 07:13 PM by Plik.
10-23-2006 07:10 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
{request}Fake MSG box - by Jimbo on 10-23-2006 at 06:43 PM
RE: {request}Fake MSG box - by Spunky on 10-23-2006 at 06:56 PM
RE: {request}Fake MSG box - by Jimbo on 10-23-2006 at 06:57 PM
RE: {request}Fake MSG box - by Plik on 10-23-2006 at 07:10 PM
RE: {request}Fake MSG box - by Spunky on 10-23-2006 at 09:04 PM
RE: {request}Fake MSG box - by CookieRevised on 10-23-2006 at 09:06 PM
RE: {request}Fake MSG box - by jmccarroll on 10-23-2006 at 11:19 PM
RE: {request}Fake MSG box - by MicroWay on 10-24-2006 at 01:10 AM
RE: {request}Fake MSG box - by markee on 10-24-2006 at 03:20 AM
RE: {request}Fake MSG box - by Jimbo on 10-24-2006 at 11:04 AM
RE: {request}Fake MSG box - by Plik on 10-24-2006 at 06:06 PM
RE: {request}Fake MSG box - by Jimbo on 10-24-2006 at 06:08 PM
RE: {request}Fake MSG box - by MoonGoose on 10-24-2006 at 06:28 PM
RE: {request}Fake MSG box - by Jimbo on 10-24-2006 at 06:35 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