Sign in to follow this  
Followers 0
Chris10Lyn

Help for Detecting a Cirlce Shape same color as the background

6 posts in this topic

Posted Image

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 :

#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.0.0
Author: Chris10Lyn Symbianize
#ce ----------------------------------------------------------------------------
#include 

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

While 1
$pixel = PixelSearch(278,309,432,405,0xA7A7A7)
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.

Share this post


Link to post
Share on other sites



Welcome to AutoIt and the forum!

Can you please tell us why you need to detect the circle and click on it?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Welcome to AutoIt and the forum!

Can you please tell us why you need to detect the circle and click on it?

i'm making a game bot that why i need to detect that circle.

Share this post


Link to post
Share on other sites

Please make sure that you have read the forum rules and you will understand why you won't get help on this subject.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Please make sure that you have read the forum rules and you will understand why you won't get help on this subject.

ok, thank you, please do delete the thread that i made. sorry

Edited by Chris10Lyn

Share this post


Link to post
Share on other sites

We don't delete threads or posts here.

If you come back with a legitimate question we will be happy to help :)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0