You can put module_name and module_ver but the problem with jscript files is
Vista or Windows 7 UAC.

Try this script:


var module_name = "Test";
var module_ver = "1.0";
var module_desc = "Test Tools";

/*
Try put this lines below and see! Don't Work!!!
WScript.Shell don't work with Vista and Win7!
*/


// var wsh = new ActiveXObject("WScript.Shell");  // this line is the problem
// WScript.Sleep(2000);


function Init() {
  addMenuItem("User", module_desc, "ReturnUser");
  addMenuItem("About", module_desc, "About");
}

function ReturnUser() {
  var wsn = new ActiveXObject("WScript.Network");
  echo("User: " + wsn.UserName);
}

function About() {
  echo("Module name: " + module_name + " version: " + module_ver);
}


-- 
<http://forum.pspad.com/read.php?2,50046,50332>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem