Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
repeating macro
#1
Hello, i am using quick macros first time.

I make macro for myself but i want that macro run again and again.. How can i do that? I click run, it run one times and finish. I want it forever.

Sorry for bad English,
#2
Hello there and welcome!

You can do it like this:

Function teste
Code:
Copy      Help
rep
, ---- Start code here ----
,out "something"
, ---- End code here ----
,wait 1 ;; wait one second until run macro again


Or if you know how many times you want to run it, you can use a for cycle:

Function teste
Code:
Copy      Help
int i
for i 0 10
, --- Start code here ---
,out "something"
, --- End code here ---
This code for example, runs the code 10 times.



Imagine that you want to run a macro that is on other file, you can do it like this:
Function teste
Code:
Copy      Help
rep
,teste2
,wait 1


Or if you want to run it a certain ammount of times:

Function teste
Code:
Copy      Help
tim 10 teste2
Like this, it will run 10 times


Forum Jump:


Users browsing this thread: 1 Guest(s)