Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 02:22

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

Advertisement



Help for Detecting a Cirlce Shape same color as the background

Discussion on Help for Detecting a Cirlce Shape same color as the background within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2012
Posts: 7
Received Thanks: 2
Smile Help for Detecting a Cirlce Shape same color as the background



As What you can see in the image above i need to detect the circle shape but the problem is its the same color as the background so i can't detect it.

This is the code i use :

Code:
#cs ----------------------------------------------------------------------------
	AutoIt Version: 3.3.0.0
	Author: Chris10Lyn Symbianize 
#ce ----------------------------------------------------------------------------
#include <GUIConstantsEx.au3>

HotKeySet ("{F5}","_Exit")

While 1
   $pixel = PixelSearch(278,309,432,405,0x2C2C2C)
	  If IsArray($pixel) = True Then;
	  MouseClick('left', $pixel[0], $pixel[1], 1, 0);
   EndIf 
WEnd

Func _Exit()
   Exit
   EndFunc
can you help me or give me a code that can detect the circle shape ?

thanks in advance sir/madam.

Ps. Please answer back in english i can't understand any language other thank english. thank you.
Chris10Lyn is offline  
Old 08/28/2012, 02:06   #2
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
This is the only way to do it, but i dont get it Try it urself
Ludder231 is offline  
Old 08/28/2012, 22:11   #3
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
ausgehend davon, das es sich um ein kleines bild handelt, reicht es durchaus einfach jeden pixel in einem radius von x zu durchsuchen, um zu sehen ob dort im radius befindlich weitere schwarze pixel sind.
lolkop is offline  
Old 09/01/2012, 12:17   #4
 
elite*gold: 0
Join Date: Jun 2012
Posts: 7
Received Thanks: 2
Quote:
Originally Posted by lolkop View Post
ausgehend davon, das es sich um ein kleines bild handelt, reicht es durchaus einfach jeden pixel in einem radius von x zu durchsuchen, um zu sehen ob dort im radius befindlich weitere schwarze pixel sind.
thank you for your comment sir but i cant understand your language..
Chris10Lyn is offline  
Old 09/01/2012, 12:42   #5
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
Quote:
Originally Posted by Chris10Lyn View Post
thank you for your comment sir but i cant understand your language..
a circle is defined by a infinite number of dots, where each of those dots got a static distance to the middle of the circle (radius).

using this definition, it's pretty easy to detect circles.

http://en.wikipedia.org/wiki/Midpoint_circle_algorithm
lolkop is offline  
Reply


Similar Threads Similar Threads
[ HELP / Info ] GM shape files
02/21/2011 - Metin2 Private Server - 0 Replies
I wonder if anyone have GM shape files ? This is the GM image : http://img204.imageshack.us/img204/1012/gmhq.png
How to Change Mobs Shape/Texture
12/26/2009 - Dekaron - 2 Replies
I'm talking about CSV edit. I was looking for a tutorial about this I recall seeing one a long time ago. But guess I didn't search that great so can anyone help me with this. For Example changing Blaverus to look like Laiden Ego?
[130 Blade] Shape edit
09/30/2009 - CO2 Weapon, Armor, Effects & Interface edits - 0 Replies
Well here is a quick shape edit of the 130 blade; it took about 3mins. http://i659.photobucket.com/albums/uu313/gumbykid 13/Untitled-5-1.jpg It took about 5mins to resize, move, and edit the pictures and bring them on one picture. Its a bit sloppy but you can see the main points. There is also 3 colors it glows, each lighter or darker; its noticeable when you see it ingame (in action). If you think i just edited the burning blade and replaced the .c3 and .dds then look at the .dds i...
[Help]Editting the Shape of a weapon
06/15/2009 - Conquer Online 2 - 3 Replies
Hello, I posted this tread in wrong section im sorry for that... Anyway... Is there a way to change the shape of a weapon without having to edit c3 files? If there is and you know would you please share with us a guide or something. Would be very usefull. Thanks in Advance.



All times are GMT +1. The time now is 02:22.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.