Interface Writer | [release] 3.0 | 22/08/2010 |
| Author: |
Message: |
vaccination
Veteran Member
    

Posts: 2515 Reputation: 45
18 / / –
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.
|
|
| 05-28-2009 03:59 PM |
|
 |
whiz
Full Member
  

nudge, nudge, wink, wink
Posts: 360 Reputation: 8
16 / / 
Joined: Nov 2008
Status: Away
|
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 |
|
 |
vaccination
Veteran Member
    

Posts: 2515 Reputation: 45
18 / / –
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...
|
|
| 05-28-2009 04:07 PM |
|
 |
whiz
Full Member
  

nudge, nudge, wink, wink
Posts: 360 Reputation: 8
16 / / 
Joined: Nov 2008
Status: Away
|
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 |
|
 |
mynetx
Skinning Contest Winner

   

Microsoft MVP - Windows Live
Posts: 986 Reputation: 34
23 / / 
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.
|
|
| 06-14-2009 03:58 PM |
|
 |
whiz
Full Member
  

nudge, nudge, wink, wink
Posts: 360 Reputation: 8
16 / / 
Joined: Nov 2008
Status: Away
|
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. 
This post was edited on 06-15-2009 at 06:44 PM by whiz.
|
|
| 06-14-2009 04:16 PM |
|
 |
mynetx
Skinning Contest Winner

   

Microsoft MVP - Windows Live
Posts: 986 Reputation: 34
23 / / 
Joined: Jul 2007
|
|
RE: Interface Writer | [beta] 1.0 -> [release] 1.2
Maybe the attached library gives you an idea.
Attachment: helper_lc.js.zip (2.5 KB)
This file has been downloaded 42 time(s).
|
|
| 06-14-2009 04:56 PM |
|
 |
SmokingCookie
Senior Member
   

(Soon to be) F-16 pilot =)
Posts: 751 Reputation: 15
16 / / 
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 |
|
 |
vaccination
Veteran Member
    

Posts: 2515 Reputation: 45
18 / / –
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...
|
|
| 06-14-2009 10:04 PM |
|
 |
whiz
Full Member
  

nudge, nudge, wink, wink
Posts: 360 Reputation: 8
16 / / 
Joined: Nov 2008
Status: Away
|
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.  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 |
|
 |
|
Pages: (14):
« First
«
1
2
[ 3 ]
4
5
6
7
»
Last »
|
|
|