Need help in macro making.

11/12/2007 06:51 lafa#1
Ok my im making macro to rerun the bot -sv..
anyway i made all the steps but i cant find out the code to insert a repet code for all of the steps every30min over and over again.
can you inrest the code in pleas?
heres the code:
Code:
act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
int w1=act(win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800))
lef 515 340 w1
key F11
'(255)F11
lef 400 92 child("" "#32770" win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800) 0x1)
lef 697 177 0 1
im using quickmacro to make it. thx.
11/12/2007 07:25 emmanication#2
try putting a sleep function then repeat the code. if u dont put a sleep it will repeat every time it finishes it.

act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
int w1=act(win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800))
lef 515 340 w1
key F11
'(255)F11
lef 400 92 child("" "#32770" win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800) 0x1)
lef 697 177 0 1

sleep 30000 <-- im assuming that its 30 mins (idk quickmacro)

act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
int w1=act(win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800))
lef 515 340 w1
key F11
'(255)F11
lef 400 92 child("" "#32770" win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800) 0x1)
lef 697 177 0 1

sleep 30000 <-- again

act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
int w1=act(win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800))
lef 515 340 w1
key F11
'(255)F11
lef 400 92 child("" "#32770" win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800) 0x1)
lef 697 177 0 1



HOW BOUT LIKE THAT?
11/12/2007 13:36 teh_n00b#3
You can use "While"
fx.
Code:
While 1 = 1

act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
int w1=act(win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800))
lef 515 340 w1
key F11
'(255)F11
lef 400 92 child("" "#32770" win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800) 0x1)
lef 697 177 0 1

// Delay for 1800 seconds or 30 minutes
Delay 1800

EndWhile
That will make an infinite loop..

Or use "For", to make it run x times

For 20, will make the script run 20 times..
Code:
For 20

act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
act win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800)
int w1=act(win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800))
lef 515 340 w1
key F11
'(255)F11
lef 400 92 child("" "#32770" win("[Conquer2.0]" "Afx:400000:0:10011:0:*""" 0x800) 0x1)
lef 697 177 0 1

// Delay for 1800 seconds or 30 minutes
Delay 1800

EndFor