mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 05:31:03 +00:00
Add files via upload
This commit is contained in:
parent
9c024cf5e1
commit
922dd56410
26
lib/autoitx.js
Normal file
26
lib/autoitx.js
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
// 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();
|
||||||
|
};
|
1168
lib/chrome.js
1168
lib/chrome.js
File diff suppressed because it is too large
Load Diff
24
lib/toolkit.js
Normal file
24
lib/toolkit.js
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
// WelsonJS.Toolkit API
|
||||||
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
var ToolkitObject = function() {
|
||||||
|
this.interface = null;
|
||||||
|
|
||||||
|
this.create = function() {
|
||||||
|
try {
|
||||||
|
this.interface = CreateObject("WelsonJS.Toolkit");
|
||||||
|
return this;
|
||||||
|
} catch (e) {
|
||||||
|
console.error("ToolkitObject.create() ->", e.message);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
this.getInterface = function() {
|
||||||
|
return this.interface;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.create = function() {
|
||||||
|
return new ToolkitObject();
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user