mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 17:34:58 +00:00
Update toolkit.js
This commit is contained in:
parent
c057c86086
commit
ec0873e0d4
|
@ -21,20 +21,18 @@ var ToolkitObject = function() {
|
||||||
this.create();
|
this.create();
|
||||||
};
|
};
|
||||||
|
|
||||||
var Toolkit = new ToolkitObject();
|
|
||||||
|
|
||||||
exports.create = function() {
|
exports.create = function() {
|
||||||
return new ToolkitObject();
|
return new ToolkitObject();
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.getInterface = function() {
|
exports.getInterface = function() {
|
||||||
return Toolkit.getInterface();
|
return exports.create().getInterface();
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.sendClick = function(wName, x, y, retry) {
|
exports.sendClick = function(wName, x, y, retry) {
|
||||||
var i = 0;
|
var i = 0;
|
||||||
while (i < retry) {
|
while (i < retry) {
|
||||||
Toolkit.getInterface().SendClick(wName, x, y);
|
exports.getInterface().SendClick(wName, x, y);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user