Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
how can i loop imm(imacros) script with javascript
I searched a little bit and found this:
for (i = 0; i < n; i++) { iimPlay(marconame.iim); }
but when i use it my browser(Firefox 18) hangs :\
for (i = 0; i < n; i++) { iimPlay("macroname.iim"); }
Add a comment
There is this option too.
var macro; macro ="CODE:"; macro +="TAG POS=1 TYPE=DIV ATTR=CLASS:some_class" var n=10; for(var i=0;i<n;i++) { iimPlay(macro) }
In codes above n is not defined so it will return an error.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.