|
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.
|