Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

I created a macro that I would like to loop continuously...I can't figure out how to structure the script to accomplish this.

I tried starting out with "rep 3" and ending with "break" which didn't work......I also tried a couple other things like "for 3" and "endfor" and "while"/"endwhile".

Can't figure this out - any help would be appreciated. Thanks.
Macro Macro1596
Copy      Help
,out "macro"
,wait 1
Hi Gintaras,

I tried doing what you said, but I couldn't get it to work. I'm sure I'm doing something wrong.

I started the script with: rep

next line: out "my script"

ended with wait 1

There was an error on the second line.
what error it was? if "emty block...", select lines that follow rep and press Tab.

Copy      Help
out "my script" ;;error
wait 1

Copy      Help
,out "my script" ;;good
,wait 1
ok I'll try this. Two questions though

What does the "out" function do? (i don't see it defined anywhere in the literature)

and what do the commas do?
out shows something in QM output. Useful to test/debug macro.
commas or tabs tell to repeat these lines, when rep is before.
oh ok. thank you.

does this mean I have to put a comma before every line of the script I wish to repeat?
Tab or comma. Only in lines followed by rep or for. You probably noticed, that QM adds a tab when you type rep and press Enter.

,repeat this
,repeat this
don't repeat this
okay cool, I just got it working with a sample script. Let's see if i can get the actual one working.

one more there a hotkey I can press to get it to stop the macro? My sample script was so fast and stuck on loop I almost had to shut off my computer to terminate it lol. thanks a lot.

Forum Jump:

Users browsing this thread: 1 Guest(s)