What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Interface Writer | [release] 3.0 | 22/08/2010

Pages: (14): « First « 1 2 [ 3 ] 4 5 6 7 » Last »
2 votes - 5 average   Interface Writer | [release] 3.0 | 22/08/2010
Author: Message:
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
RE: BETA - Interface Writer 1.0!
quote:
Originally posted by whiz
quote:
Originally posted by vaccination
Precisely. (Or a better way would be to just read the registry value IMO but whatever =p)

Then how do you do that?  ;)
Something like:
JScript code:
var aWshShell = new ActiveXObject("WScript.Shell");
 
//Read a reg key value:
var ScriptPath = aWshShell.RegRead("HKEY_LOCAL_MACHINE\\Software\\Patchou\\Messenger Plus! Live\\ScriptsDir");


This post was edited on 05-28-2009 at 03:59 PM by vaccination.
[Image: jumbled.png]
05-28-2009 03:59 PM
Profile PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Interface Writer | [release] 1.2
quote:
Originally posted by vaccination
Something like:
JScript code:
var aWshShell = new ActiveXObject("WScript.Shell");
 
//Read a reg key value:
var ScriptPath = aWshShell.RegRead("HKEY_LOCAL_MACHINE\\Software\\Patchou\\Messenger Plus! Live\\ScriptsDir");



And that returns the root script directory?

This post was edited on 06-14-2009 at 02:31 PM by whiz.
05-28-2009 04:01 PM
Profile E-Mail PM Find Quote Report
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
RE: BETA - Interface Writer 1.0!
quote:
Originally posted by whiz
quote:
Originally posted by vaccination
Something like:
JScript code:
var aWshShell = new ActiveXObject("WScript.Shell");
 
//Read a reg key value:
var ScriptPath = aWshShell.RegRead("HKEY_LOCAL_MACHINE\\Software\\Patchou\\Messenger Plus! Live\\ScriptsDir");



And that returns the root script directory?
Try it and find out...
[Image: jumbled.png]
05-28-2009 04:07 PM
Profile PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Interface Writer | [release] 1.2
Works great, thanks!  ;)

This post was edited on 06-14-2009 at 02:31 PM by whiz.
05-28-2009 04:12 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
RE: Interface Writer | [beta] 1.0 -> [release] 1.2
I like this script very much.  In fact here is a suggestion I'd love to see:
Parse window XML of existing windows, and allow to edit them.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
06-14-2009 03:58 PM
Profile E-Mail PM Web Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Interface Writer | [release] 1.2
quote:
Originally posted by mynetx
I like this script very much.  In fact here is a suggestion I'd love to see:
Parse window XML of existing windows, and allow to edit them.
I thought about that, but I have no idea of how to read and edit existing XML files.  :S

This post was edited on 06-15-2009 at 06:44 PM by whiz.
06-14-2009 04:16 PM
Profile E-Mail PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
RE: Interface Writer | [beta] 1.0 -> [release] 1.2
Maybe the attached library gives you an idea.

.zip File Attachment: helper_lc.js.zip (2.5 KB)
This file has been downloaded 172 time(s).
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
06-14-2009 04:56 PM
Profile E-Mail PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: Interface Writer | [beta] 1.0 -> [release] 1.2
About the scripts' folder: I use this method:

JScript code:
function GetScriptFolder() {
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var ret = fso.GetFolder(MsgPlus.ScriptFilesPath + "\\..").Path;
    fso = null; // Clean up
    return ret;
}


Works for me..

EDIT::

Checking whether 'something' exists within an object:

JScript code:
var myObj = new Object();
myObj.someProperty = "Hello world!";
 
if("someProperty" in myObj) Debug.Trace("Exists!");
if("someOtherProperty" in myObj /* this is false; code won't be run */) Debug.Trace("Exists");


This post was edited on 06-14-2009 at 05:37 PM by SmokingCookie.
06-14-2009 05:34 PM
Profile PM Find Quote Report
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
RE: Interface Writer | [beta] 1.0 -> [release] 1.2
quote:
Originally posted by SmokingCookie
About the scripts' folder: I use this method:

JScript code:
function GetScriptFolder() {
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var ret = fso.GetFolder(MsgPlus.ScriptFilesPath + "\\..").Path;
    fso = null; // Clean up
    return ret;
}


Works for me..

Or you could do it the proper way...
[Image: jumbled.png]
06-14-2009 10:04 PM
Profile PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Interface Writer | [release] 1.2
quote:
Originally posted by mynetx
Maybe the attached library gives you an idea.
Umm...  I'm afraid I don't really understand that.  :S  All I get is that XML comes in nodes, and the script would read each "child" node of each "parent", and put it into the arrays (e.g. the first control ID of the first window into the WndCtrlIDs[0][0] variable).  But I have no idea how to do it...  :(

This post was edited on 06-15-2009 at 06:44 PM by whiz.
06-15-2009 03:16 PM
Profile E-Mail PM Find Quote Report
Pages: (14): « First « 1 2 [ 3 ] 4 5 6 7 » 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