AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Image Search Fails to recognize screenshot if trigger (game)

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ProfessorY91



Joined: 03 Mar 2008
Posts: 12
Location: Inside your mind.

PostPosted: Mon Mar 03, 2008 2:06 pm    Post subject: Image Search Fails to recognize screenshot if trigger (game) Reply with quote

Help would be much appreciated with this topic.

I'm building a script to recognize a color change of the crosshair in the game Halo: Combat Evolved. Obviously there are many triggers, but since the game is First Person Shooter, the trigger remains stationary while the surroundings move. I have gotten the game not to run in full screen mode to make my life easier.

Note that this is not an autoshooter, rather a sort of proximity alarm. (i.e. I use soundbeep to create a "lock on" effect when the cross hair changes color.) The color changes from blue to red, and I will post screenshots if necessary (request).

Now for the simpletons out there, I have tried three methods of recognition with failed results.

ImageSearch with up to *100 shades of variation for each crosshair. (No luck)

PixelGetColor but never sure exactly what pixel is the trigger (tried using that magnifying single pixel color selecting script - cant because the cursor is take over by the game). How do I capture the right pixel? I can siphon the red and blue colors off of paint.

PixelSearch This tends to be the hardest to work with, even though you can set a region on the screen. It seems never to recognize the colors. (How do I capture the right color, tried: blowing up the screenshot with paint. Is that the right method?).

Is there anything that I left out?

If I post the triggers, could someone make example code for me?

Thank you very much.
_________________

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group