Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



how to make a loop (image included)

Discussion on how to make a loop (image included) within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
how to make a loop (image included)

i was trying to make a loop like this





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
fear-x is offline  
Old 02/14/2012, 14:27   #2
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
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.
lolkop is offline  
Old 02/14/2012, 15:51   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
check pixels
if "red" pixel found then stop and give a warning or do ;action;
fear-x is offline  
Old 02/14/2012, 16:00   #4
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
Do you wan't to move the mouse spiral witch those corners or cicular?
jacky919 is offline  
Old 02/14/2012, 16:06   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
well which ever is better in autoit? i suppose circular?

anyone? ;(
fear-x is offline  
Old 02/14/2012, 18:38   #6
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
pixelsearch would do that linar, which is way more efficient, than calculating your way in a circle
lolkop is offline  
Thanks
1 User
Old 02/14/2012, 18:40   #7
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
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

but its c# i think any1 can help ?
fear-x is offline  
Old 02/19/2012, 00:22   #8
 
sasukegamer's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 6
Received Thanks: 0
hello may i ask? do you know how to search memory address for monsters in the game?
sasukegamer is offline  
Old 02/19/2012, 09:15   #9
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
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 . So stop spamming all the other threads.
jacky919 is offline  
Reply


Similar Threads Similar Threads
WHY RIBOT MAKE BAD LOOP
06/13/2010 - Silkroad Online - 4 Replies
somehtimes when die or only come back to re pot the bot make a bad loop. stay near the npc of horses. and dont go to any part i no have problems whit hunting bot but only somehitng or alot of times loop :S stay there or stuk on other parts some time go to LVL and make all loop correct. WHY IS THAT.
WHY RSRO MAKE BAD LOOP
06/13/2010 - Silkroad Online - 1 Replies
somehtimes when die or only come back to re pot the bot make a bad loop. stay near the npc of horses. and dont go to any part i no have problems whit hunting bot but only somehitng or alot of times loop :S stay there or stuk on other parts some time go to LVL and make all loop correct. WHY IS THAT.
SRO-DB bot (How can i make loop in jangan)?
06/02/2010 - SRO Private Server - 6 Replies
Hey guys, i have a problem, can i make a loop in Jangan or in Downhang. Yes? or No? and how can i make it? Thx for a answer.
How make a image on the guild?
01/07/2010 - SRO Private Server - 0 Replies
How make a image on the guild? !!! PLs Tutorial :S



All times are GMT +1. The time now is 07:26.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.