07-19-2006, 03:24 AM
Hey, was just wondering if anyone here knew how to write in autoit and could point out some clues for me as in how to perform certain tasks, such as :
If I made a script to join a game, perform its loop, then exit's. How would i make it join the next game, with an increased variable of 1 (as in game name) and repeat the loop?
Like this: I join Baal-1, perform the functions, exits. Then joins baal-2, performs functions, exits. Joins baal-3.
This can be written if i just do
send("baal-1")
sleep($x)
func (main)
sleep($x)
send("baal-2")
func(main)
sleep(@x)
send("baal-3")
but that would just make the script long and take a while, even to copy and paste, since I want it to go to a certain amount. So i was thinking of sumthing like "For $y = 1 to 200 step 1" which would add an increment of 1, but i'd need a function. Sry if this looks a bit messy. If anyone could help me, thatd be greatly appreciated! thx.
If I made a script to join a game, perform its loop, then exit's. How would i make it join the next game, with an increased variable of 1 (as in game name) and repeat the loop?
Like this: I join Baal-1, perform the functions, exits. Then joins baal-2, performs functions, exits. Joins baal-3.
This can be written if i just do
send("baal-1")
sleep($x)
func (main)
sleep($x)
send("baal-2")
func(main)
sleep(@x)
send("baal-3")
but that would just make the script long and take a while, even to copy and paste, since I want it to go to a certain amount. So i was thinking of sumthing like "For $y = 1 to 200 step 1" which would add an increment of 1, but i'd need a function. Sry if this looks a bit messy. If anyone could help me, thatd be greatly appreciated! thx.