Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Need help on picture matching with a marco

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
dennis91
Expert Cheater
Reputation: 0

Joined: 23 Jun 2006
Posts: 230
Location: ----------latitude 1o 18' N longitude 103o 50'

PostPosted: Wed Nov 21, 2007 5:43 pm    Post subject: Need help on picture matching with a marco Reply with quote

Anyone knows how can I create a macro / program that detects for a certain picture within a range of coordinates, and thereafter clicks on a certain position of the the picture it detects?

eg.

begin
procedure 1:

scan x-coordinates 0-1000 and y-coordinates 0-1000
for Picture X

if
no of picture X >0,

then
randomly click on 50 pixels from the top of any of the Picture X
and then run procedure 1

else
detect for Picture Y

if
no of picture Y >0,

then
randomly click on 50 pixels from the top of any of the Picture Y

else
run procedure 1
end

_________________
The one user I hate the most:
Concoction

I am in love with:
********, would she say Ido?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Nov 21, 2007 7:59 pm    Post subject: Reply with quote

AutoIT can do pixel detection. You can set it up to scan for multiple pixels in your case. Check out their forums for some examples.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
TheSorc3r3r
I post too much
Reputation: 0

Joined: 06 Sep 2006
Posts: 2404

PostPosted: Wed Nov 21, 2007 8:03 pm    Post subject: Reply with quote

You could use Python (with its PIL).
_________________


Don't laugh, I'm still learning photoshop!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites