mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 23:41:42 +00:00
23 lines
579 B
JavaScript
23 lines
579 B
JavaScript
////////////////////////////////////////////////////////////////////////
|
|
// AutoIt3 API
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
var SHELL = require("lib/shell");
|
|
|
|
exports.VERSIONINFO = "AutoIt3 (autoit3.js) version 0.1";
|
|
exports.global = global;
|
|
exports.require = global.require;
|
|
|
|
exports.execScript = function(scriptName, args) {
|
|
var cmd = [
|
|
"%PROGRAMFILES(X86)%\\AutoIt3\\AutoIt3.exe",
|
|
scriptName + ".au3"
|
|
];
|
|
|
|
if (typeof(args) !== "undefined") {
|
|
cmd = cmd.concat(args);
|
|
}
|
|
|
|
return SHELL.exec(cmd);
|
|
};
|