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