Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with macro
#1
Hello, I'm new to the program of Quick Macros. I'm impressed with it so far, but having difficult with repeating my macro.

spe 10
int w1=act(win("SpreadSheet Import" "MozillaUIWindowClass"))
lef 410 552 w1; 3.16
lef 413 551 w1; 2.58
lef 411 576 w1; 14.72
lef 413 555 w1

The macro works fine, and I've read up on the rep command but I do not know how to make the entire macro repeat itself when its reached the end. Can somebody show me how its done ? It would really speed up my work.

Thank you,

Wayne
#2
Function Function3
Code:
Copy      Help
rep
,spe 10
,int w1=act(win("SpreadSheet Import" "MozillaUIWindowClass"))
,lef 410 552 w1; 3.16
,lef 413 551 w1; 2.58
,lef 411 576 w1; 14.72
,lef 413 555 w1


or

Function Function3
Code:
Copy      Help
;top
spe 10
int w1=act(win("SpreadSheet Import" "MozillaUIWindowClass"))
lef 410 552 w1; 3.16
lef 413 551 w1; 2.58
lef 411 576 w1; 14.72
lef 413 555 w1
goto top
#3
Beware of that second example...it sets up an infinite loop. Easily ended in QM...but I generally avoid them. If you plan on using a goto command to set up a loop you will need some sort of escape key.


Forum Jump:


Users browsing this thread: 1 Guest(s)