Help needed with simple while loop Topic is solved

Ask gaming related questions (AHK v1.1 and older)
blablabla

Help needed with simple while loop  Topic is solved

20 Apr 2015, 14:57

Hey, I tried to create a "click" script that clicks through a list with several pages

Unfortunately it says Missing "{" when I try to run the script - and I have no idea why (I'm a newbie ^^)

Would be much appreciated if someone could give me a hint about what I am doing wrong :S

Code: Select all

#Esc::ExitApp
F8::
start_x := 12
start_y := 12
incr := 10
page_x := 12
page_y := 12
t_x := 12
t_y := 12
copy_x := start_x
copy_y := start_y
counter := 1
page := 1
    
while page < 11 {	
	if counter < 12	{	
		Click copy_x, copy_y
		counter++
		copy_x := copy_x + incr
		sleep 2000
		Click t_x, t_y
		continue
	}
	else {
		page++
		counter = 1
		copy_x := start_x
		click page_x, page_y
		sleep 500
	}
}
return
blablabla

Re: Help needed with simple while loop

27 Apr 2015, 11:15

oh, I forgot to reply :oops:

Thx for the help, it worked :)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 45 guests