function* makeIterator(data) {
for(i in data){
yield data[i];
}
}
function runPull() {
var obj = it.next();
var val;
console.log("RunPull Clicked",obj);
if(!obj.done) {
val = obj.value;
val.click();
setTimeout(function(){
runPull();
},200);
}
}
runArray = [$(e1),$(e2),$(e3),$(e4),$(e5)]
it = makeIterator(runArray);
runPull();
You need to save it in the Packages folder hierarchy for ST to pick it up - you can try Tools -> Developer - New Syntax, paste in the tmLanguage and save it in the folder ST recommends (Packages/User) as <packagefile>.tmLanguage , then Tools -> Developer -> New Syntax From <packagefile> .tmLanguage.
Comments
Post a Comment