Code: Select all
RunWait C:\Windows\System32\WScript.exe D:\Downloads\create_script_control_obj.js
Script: D:\Downloads\create_script_control_obj.js
Line: 1
Char: 1
Error: Automation server can't create object
Code: 800A01AD
Source: Microsoft JScript runtime error[/code]
But when I'm launching JS-file itself, not from AHK, it works fine, what could be the reason?
In js code, there's just a creation of new ScriptControl object:
Code: Select all
var vbe = new ActiveXObject( 'ScriptControl' );
WScript.Echo( 'ok' );