how to make a loop (image included)

02/14/2012 00:29 fear-x#1
i was trying to make a loop like this


[Only registered and activated users can see links. Click Here To Register...]


here is my code

Code:
Func _target()
local $center1=639, $center2=360, $endpoint1=1038, $endpoint2=542
$x1 = $center1
$y1 = $center2
$x2 = $endpoint1
$y2 = $endpoint2
$radius = 0
$radius2= 0

Do
$pixelior = PixelGetColor($center1, $center2 , $HWnD)
;~ 	$newdata1 = $newx

	Do
		ConsoleWrite("doing first region" & @TAB & " = right => top" & @crlf)
	$RETURN_RIGHT_TOP = 1 ; pointer => left => top => leave pointer = 1
	$center1=$center1+1
	$pixelior = PixelGetColor($center1, $center2 , $HWnD)
	MouseMove($center1, $center2)
	$center2=$center2-1
	$pixelior = PixelGetColor($center1, $center2 , $HWnD)
	MouseMove($center1, $center2)
	$radius=$radius+1
	Until $radius + 10
;~ 	$newx

Sleep(100)

	Do
		ConsoleWrite("doing second region" & @TAB & " = left => down" & @crlf )
	$RETURN_LEFT_DOWN = 1 ; pointer = 1  => RIGHT => DOWN => leave pointer = 2
	$center1=$center1-1
	$pixelior = PixelGetColor($center1, $center2 , $HWnD)
	MouseMove($center1, $center2)
	$center2=$center2+1
	$pixelior = PixelGetColor($center1, $center2 , $HWnD)
	MouseMove($center1, $center2)
	$radius2=$radius+1
	Until $radius2 + 10

Sleep(100)
Exit 1

Until "0x"&Hex($pixelior, 6)=0xE92D3C
which failed lmao...

so um any1 could help me out? please;///

i want it to work like shown in image :)
02/14/2012 14:27 lolkop#2
so what exactly are you tryin' to do? build a picture like that? move the mouse along those growin circles or just check the pixels on those circles?

beside that i'ts not realy clear, if you wanna work like the arrows on that image, or by running through every single pixel on the screen.
02/14/2012 15:51 fear-x#3
check pixels
if "red" pixel found then stop and give a warning or do ;action;
02/14/2012 16:00 jacky919#4
Do you wan't to move the mouse spiral witch those corners or cicular?
02/14/2012 16:06 fear-x#5
well which ever is better in autoit? i suppose circular?

anyone? ;(
02/14/2012 18:38 lolkop#6
pixelsearch would do that linar, which is way more efficient, than calculating your way in a circle :o
02/14/2012 18:40 fear-x#7
just for some info
the window will be inactive
thats why i was using pixelgetcolor which works in an inactive window

eh also if its hard to make circle search then rectangular would be great.. im trying all day but failed lmao

i found this
[Only registered and activated users can see links. Click Here To Register...]
but its c# i think any1 can help ?
02/19/2012 00:22 sasukegamer#8
hello may i ask? do you know how to search memory address for monsters in the game?
02/19/2012 09:15 jacky919#9
Quote:
Originally Posted by sasukegamer View Post
hello may i ask? do you know how to search memory address for monsters in the game?
It seems that nobody could help you in [Only registered and activated users can see links. Click Here To Register...]. So stop spamming all the other threads.