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
.
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
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