AutoHotkey Community

It is currently May 26th, 2012, 6:29 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: March 3rd, 2008, 3:06 pm 
Offline

Joined: March 3rd, 2008, 2:48 pm
Posts: 12
Location: Inside your mind.
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.

_________________
ImageImage
ImageImage


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, Exabot [Bot], JSLover, kkkddd1, Tipsy3000, Yahoo [Bot] and 72 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group