You are here: PSPad forum > English discussion forum > Re: Support for JScript active scripting not found
Posted by: Marshall | Date: 2010-02-17 16:41 | IP: IP Logged
Open phpStylist.js and put this:
var module_name = "phpStylist";
var module_ver = "1.0";
var module_title = "phpStylist";
Remember, all javascript files need this 3 variables
Edited 1 time(s). Last edit at 2010-02-17 16:51 by Marshall.
Posted by: atomheart | Date: 2010-02-21 08:22 | IP: IP Logged
Some scripts (eg. encode.js, InsertComments-ENG.js, js_beautify.js, js_beautify_php.js, JSpacker.js, regex_tester.js) have one little problem in addMenuItem(...) function call: they haven't 4th param - HotKey. And of course - 3 main params mustbe declared in lower case.
For example:
Module: regex_tester.js
var module_name = "RegExTester";
var module_ver = "0.1";
var module_title = "Regular Expression Tester";
// in this case we have problem (4th param & case):
function Init() {
addMenuItem (MODULE_TITLE, "", MODULE_NAME);
}
// and there is NO problems and all work's good:
function Init() {
addMenuItem (module_title, "", module_name, "");
}
have fun
Edited 1 time(s). Last edit at 2010-02-21 08:25 by atomheart.
Posted by: jvaan | Date: 2010-03-04 22:32 | IP: IP Logged
Marshall:If you are experiencing difficulties when attempting to script access data, open Internet Explorer, click on Tools, then on Internet Options, then on the Advanced tab. Scroll down to the Security settings and enable the option to "Allow active content to run in files on My Computer"
strike this out --->This one worked for me without having to edit the scripts.
oops, spoke too soon. problem came back when I had any_tag_close.js, which had uppercase "in var module_name, var module_ver, var module_title." change them to lowercase and the error is gone.
Edited 1 time(s). Last edit at 2010-03-04 22:43 by jvaan.
Posted by: yuehongliang | Date: 2010-04-06 18:35 | IP: IP Logged
I find, It dos not matter with EI8,you can open the *.js file with windows notepad and "save it as ANIS format",then it works ok.
Edited 1 time(s). Last edit at 2010-04-06 18:36 by yuehongliang.
Posted by: benito | Date: 2010-11-26 10:21 | IP: IP Logged
Not only 3 main params must be declared in lower case, but any variable in script. That means, that only these characters [a-z_] are allowed for variable name.
Posted by: CarlosCZ | Date: 2011-09-02 16:49 | IP: IP Logged
This problem is easy to fix.
Run command line (cmd.exe - in Windows 7/Vista run elevated).
Go to folder
x:\Windows\System32 and run command
"regsvr32.exe vbscript.dll" and
"regsvr32.exe jscript.dll".
On 64-bit machine run in same folder and same commands in folder "x:\Windows\SysWOW64".
Sorry for my poor english, but this solve your problem.
Carlos
P.S.: You must have admin privileges.
Posted by: tinne | Date: 2013-10-20 10:36 | IP: IP Logged
All the help above did not work for me on Windows 7 64 bit, WSH was still defective after it.
What did help was the answer in Microsoft's knowledge base support.microsoft.com regarding issue 949140.
After running the "Microsoft Fix it 50181", PSPad starts without error.
Posted by: pspad | Date: 2013-10-20 11:03 | IP: IP Logged
tinne:All the help above did not work for me on Windows 7 64 bit, WSH was still defective after it.What did help was the answer in Microsoft's knowledge base support.microsoft.com regarding issue 949140.
After running the "Microsoft Fix it 50181", PSPad starts without error.
It means there is problem in Operating system
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR