mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 23:41:42 +00:00
27 lines
662 B
JavaScript
27 lines
662 B
JavaScript
////////////////////////////////////////////////////////////////////////
|
|
// AutoItX3.Control API
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
var AutoItXObject = function() {
|
|
this.interface = null;
|
|
|
|
this.create = function() {
|
|
try {
|
|
this.interface = CreateObject("AutoItX3.Control");
|
|
return this;
|
|
} catch (e) {
|
|
console.error("AutoItXObject.create() ->", e.message);
|
|
}
|
|
};
|
|
|
|
this.getInterface = function() {
|
|
return this.interface;
|
|
};
|
|
|
|
this.create();
|
|
};
|
|
|
|
exports.create = function() {
|
|
return new AutoItXObject();
|
|
};
|