Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
REPEAT
#1
i am trying to make this repeat and do more then the 3 times
-------------------------------------------------------------------------------------------
int w1=act(win("MySpace.com - - Microsoft Internet Explorer" "IEFrame"))
lef 280 752 w1
lef 29 155 win("" "Internet Explorer_Server")
act w1
lef 305 750 w1
wait 5.0
int wf=act(win("MySpace.com - - Microsoft Internet Explorer" "IEFrame"))
lef 280 752 w1
lef 29 155 win("" "Internet Explorer_Server")
act w1
lef 305 750 w1
wait 5.0
int wd=act(win("MySpace.com - - Microsoft Internet Explorer" "IEFrame"))
lef 280 752 w1
lef 29 155 win("" "Internet Explorer_Server")
act w1
lef 305 750 w1
wait 5.0
int wc=act(win("MySpace.com - - Microsoft Internet Explorer" "IEFrame"))
lef 280 752 w1
lef 29 155 win("" "Internet Explorer_Server")
act w1
lef 305 750 w1
-------------------------------------------------------------------------------------------------
i know its just a record lmao but its the fasted way and i just want it to repeat over and over again how can i do that ?
#2
Straight from the help file.


Syntax
rep [n]
(tab) statement
(tab) ...
...



Can be single line:

rep([n]) statement ...



Parts
n - number of times to repeat.

statements - one or more statements (commands).



Remarks
Repeatedly executes statements n times. If n is omitted, executes forever.



Use break to exit loop. Use continue to skip following statements.



rep can be in other block (if, rep, ...).



See also : for, foreach.

Examples
Macro
Code:
Copy      Help
rep 10
,bee
,1

rep(10) bee; 1

rep
,i+1
,if(i>10) break



Macro
Code:
Copy      Help
rep 10
,int w1=act(win("MySpace.com - - Microsoft Internet Explorer" "IEFrame"))
,lef 280 752 w1
,lef 29 155 win("" "Internet Explorer_Server")
,act w1
,lef 305 750 w1
,wait 5.0
#3
this was not much help , if there is any other way you can help me let me know thank you


Forum Jump:


Users browsing this thread: 1 Guest(s)