Hey everyone basically I have a variable in imacros that I increment each time , it has an integer value.
I loop from 0
to 1000
, however what I want to be displayed is 0000
to 1000
, what is displayed is of course 0, 1, 2...1000.
Anyway to achieve this?
Asked
Active
Viewed 486 times
0

Faouzi FJTech
- 981
- 3
- 13
- 27
-
no build-in way to do it. the only way is to modify values on-the-fly before use adding zeros at the begining – Bestmacros Aug 07 '13 at 11:11
1 Answers
1
There is a solution with JS here
Example:
for(i=0;i<=1000;i++)
{
var str = "" + i;
var pad = "0000";
iimDisplay(pad.substring(0, pad.length - str.length) + str);
}

Community
- 1
- 1

Poker Joker
- 382
- 2
- 8
-
Thanks for the solution, didnt know that javascripted integrated with imacros ! – Faouzi FJTech Aug 12 '13 at 14:59