Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Repeat macro
#1
Hello again, i had success in made my macro but now the problem is that i dunno how to make it repeats one or more times. My code is this
Code:
Copy      Help
opt save; opt slowkeys; opt slowmouse; spe 100
for int'(w1=act(win("Word" "Word"))) 0 2
'T144T14444     ;; TABULACION 1 4 4 4 TABULACION 1 4 4 4 4
mou 1107 602 w1 1
mou ":EDHDCCFCEDCDEDEB"
'4              ;; 4
mou 1273 744 w1 1
'T144T14444     ;; TABULACION 1 4 4 4 TABULACION 1 4 4 4 4
mou 1107 602 w1 1
mou ":EDHDCCFCEDCDEDEB"
'4              ;;
'T144T14444     ;; TABULACION 1 4 4 4 TABULACION 1 4 4 4 4
mou 1107 602 w1 1
mou ":EDHDCCFCEDCDEDEB"
'4              ;; 4
mou 1273 744 w1 1
#endregion
#2
Try this to make it repeat 3 times, you can change the number after "rep" to iterate that much times.
Macro Macro26
Code:
Copy      Help
opt save; opt slowkeys; opt slowmouse; spe 100
int w1=act(win("Word" "Word"))
rep 3
,'T144T14444 ;; TABULACION 1 4 4 4 TABULACION 1 4 4 4 4
,mou 1107 602 w1 1
,mou ":EDHDCCFCEDCDEDEB"
,'4 ;; 4
,mou 1273 744 w1 1
,'T144T14444 ;; TABULACION 1 4 4 4 TABULACION 1 4 4 4 4
,mou 1107 602 w1 1
,mou ":EDHDCCFCEDCDEDEB"
,'4 ;;
,'T144T14444 ;; TABULACION 1 4 4 4 TABULACION 1 4 4 4 4
,mou 1107 602 w1 1
,mou ":EDHDCCFCEDCDEDEB"
,'4 ;; 4
,mou 1273 744 w1 1
,0.1 ;; wait 1/10 of a second, modify this number as you see fit.
#endregion
#3
It send me this error: empty block. Did you forget to tab-indent following lines?
I have tab all the following lines?
#4
You have to tab all lines below the "rep 3" line.
#5
it works! Thank you very much for your answer


Forum Jump:


Users browsing this thread: 1 Guest(s)