What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Disable access to parent chat window when child xml window open

Pages: (2): « First « 1 [ 2 ] Last »
Disable access to parent chat window when child xml window open
Author: Message:
the andyman
Junior Member
**

Avatar
Windows Live Fanatic

Posts: 92
Reputation: 4
– / Male / Flag
Joined: Apr 2005
O.P. RE: RE: Disable access to parent chat window when child xml window open
Ok here's a beta version of the script (still with bugs). If anyone can figure out what's wrong I will be very grateful.

You may see the script as pretty pointless but in the future there will be extended functionality etc

quote:
Originally posted by CookieRevised
quote:
Originally posted by the andyman
Also, is there any way to remove the text that is left in the text box in the conversation window?
Return an empty string from the ChatWndSendMessage event.
that doesn't seem to be working :|

.plsc File Attachment: IMoffline.plsc (3.25 KB)
This file has been downloaded 119 time(s).
12-09-2006 05:22 PM
Profile E-Mail PM Web Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: RE: RE: Disable access to parent chat window when child xml window open
I get a "not a valid script file" error when trying to import. :s
Edit: changed the first line to <?xml version="1.0"?>, repackaged and it worked.

Edit 2: After importing, I get "Error: Invalid root in registry key". This can be solved by checking if the user is signed in in the OnEvent_Initialize function, and then if they are call the OnEvent_Signin function passing Messenger.MyEmail. This way the user does not have to re-sign in for the script to work.

Also, one way to solve your removing the text from the text box problem would be to use ChatWnd.EditText_SetCurSel - look in the scripting doc for more info ;)



This post was edited on 12-09-2006 at 05:51 PM by pollolibredegrasa.
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
12-09-2006 05:30 PM
Profile PM Find Quote Report
the andyman
Junior Member
**

Avatar
Windows Live Fanatic

Posts: 92
Reputation: 4
– / Male / Flag
Joined: Apr 2005
O.P. RE: Disable access to parent chat window when child xml window open
Thanks, I think I've fixed all the n00bish errors you pointed out :), and I got the EditText_SetCurSel working. Here's an updated version of the script...

.plsc File Attachment: IMoffline.plsc (3.39 KB)
This file has been downloaded 137 time(s).
12-09-2006 06:51 PM
Profile E-Mail PM Web Find Quote Report
the andyman
Junior Member
**

Avatar
Windows Live Fanatic

Posts: 92
Reputation: 4
– / Male / Flag
Joined: Apr 2005
O.P. RE: RE: RE: Disable access to parent chat window when child xml window open
quote:
Originally posted by the andyman
It does seem to be working properly now except only when I use the enter button to send a message, not the "Send" button
is anyone getting this bug with the most recent version (posted directly above)?
12-10-2006 07:04 PM
Profile E-Mail PM Web Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: RE: RE: RE: Disable access to parent chat window when child xml window open
quote:
Originally posted by the andyman
quote:
Originally posted by the andyman
It does seem to be working properly now except only when I use the enter button to send a message, not the "Send" button
is anyone getting this bug with the most recent version (posted directly above)?


I get the window whether I press enter or use the send button, and it works either way.

Still getting the registry error though when I use an account who's settings are not saved.
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
12-10-2006 07:28 PM
Profile PM Find Quote Report
the andyman
Junior Member
**

Avatar
Windows Live Fanatic

Posts: 92
Reputation: 4
– / Male / Flag
Joined: Apr 2005
O.P. RE: RE: RE: RE: RE: Disable access to parent chat window when child xml window open
quote:
Originally posted by fatfreechicken
Still getting the registry error though when I use an account who's settings are not saved.
Hmm, thanks for telling me - I'll have (another) look now.
12-10-2006 09:51 PM
Profile E-Mail PM Web Find Quote Report
the andyman
Junior Member
**

Avatar
Windows Live Fanatic

Posts: 92
Reputation: 4
– / Male / Flag
Joined: Apr 2005
O.P. RE: RE: RE: RE: RE: RE: Disable access to parent chat window when child xml window op
quote:
Originally posted by the andyman
quote:
Originally posted by fatfreechicken
Still getting the registry error though when I use an account who's settings are not saved.
Hmm, thanks for telling me - I'll have (another) look now.
I'm pretty sure it should be working, and seems to have worked for other's that have tried it. Here's the code I'm currently using to check for the registry value:
code:
var Shell = new ActiveXObject("WScript.Shell");
function OnEvent_Initialize(MessengerStart){
try{
    var echeck = Messenger.MyEmail;
}catch(e){
    var echeck = "null";
}
if(echeck=="null"){
    function OnEvent_Signin(Email){
        try{
            Shell.RegRead(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\enabled");
        }catch(e){
            Shell.RegWrite(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\enabled","true");
        }
    }
}else{
    try{
        Shell.RegRead(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\enabled");
    }catch(e){
        Shell.RegWrite(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\enabled","true");
    }
}
}
12-11-2006 05:58 PM
Profile E-Mail PM Web Find Quote Report
the andyman
Junior Member
**

Avatar
Windows Live Fanatic

Posts: 92
Reputation: 4
– / Male / Flag
Joined: Apr 2005
O.P. RE: Disable access to parent chat window when child xml window open
Sorry for all the double postings. Here's a new version which includes an option to only ask you to confirm once when you are first appear offline.

.plsc File Attachment: IMoffline.plsc (3.65 KB)
This file has been downloaded 163 time(s).
12-11-2006 06:30 PM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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