Hey @
[Only registered and activated users can see links. Click Here To Register...]
I did it like this:
Menu >> Settings >> Screen >> Adjust Gamma: -50% >> Adjust Contrast: +50%
This creates a nice black background. I would also look at a dark object/ scene, just to create a dark scene again. The reason that I did this is because I plan on using Photoshop's 'Select Color Range' tool.
So, once I have my nice dark background, I took the screenshot (as a PNG, that's important. Don't take your screenshots as JPG), and loaded it into Photoshop. Cropped the "Press 'Space'" part, then selected a color range on the 'Press' and on the 'Space' words. Make sure to select a fairly SOLID color, not a transitional pixel color (like off-yellow, try to get the yellowest yellow).
Copy each selection and paste into a new layer (Photoshop pastes in place for me). Then create a new layer, and set the background color to pure white (FFFFFF).
Save the image as a PNG, and you should be good to go.
Since I'm not great at explaining things, here's some pictures:
Step 1: Import screenshot to Photoshop, crop section:
[Only registered and activated users can see links. Click Here To Register...]
Step 2: Open Select > Color Range... tool:
[Only registered and activated users can see links. Click Here To Register...]
Step 3: Select SOLID color of the text, make sure to set fuzziness to 0:
[Only registered and activated users can see links. Click Here To Register...]
Step 4: Make sure that your selection looks good:
[Only registered and activated users can see links. Click Here To Register...]
Step 5: Copy and paste your selection. It should make a new layer that should be just that selection.
Step 6: Go back to main layer, and do the same thing for the other word.
Step 7: You should have two layers. Add a new one below those two, make it solid white:
[Only registered and activated users can see links. Click Here To Register...]
In my test, I was able to find my image at 0 tolerance, even when the background was like this:
[Only registered and activated users can see links. Click Here To Register...]
Here's my final image:
[Only registered and activated users can see links. Click Here To Register...]
Here's the ImageSearch function that I used to test it:
Code:
Func _Search()
Local $C[2]
For $i = 0 To 255
$IS = _ImageSearchArea($iSearch, 1, 0, 0, 1920, 1080, $C[0], $C[1], $i, "0xffffff")
If $IS = False Then ContinueLoop
If $IS = True Then
MsgBox(0, '', 'Found it at ' & $i, 5)
Exit
EndIf
Next
MsgBox(0, '', 'Not found', 3)
EndFunc ;==>_Search
The important thing to note here, is that for the _ImageSearchArea, we use "0xffffff" at the end, which is the hex code for the white transparency.
Hope that all makes sense for how I got there.
Thanks,
Rodent11