checking color for program outside of aplication
I am trying to make an application that checks if a certain colour (color for people who can't spell properly ;) ) is on the screen. I was talking chrilley on gwerdy but he could only think of the pixel object which checks in the application. I want it to check the screen so that if you have a different program running on top of the application it will check that instead.
Any help would be greatly appreciated.
Stevey
Re: checking color for program outside of aplication
Hey stevey,
There are a lot of 'colour' objects that do things like this, but I'm not sure if you can do it out of the screen.
There is an option on your application (Click on your application, then click on the red arrow and there should be an option that says "run when minimized".) that might do the trick, I'll try and make an example soon.
Good luck ;)
Re: checking color for program outside of aplication
Make your application the size of the screen. Check the box Frame Properties > Runtime Options > Grab Desktop. Then your frame window will have all of the background's colors on it and you can check.
Re: checking color for program outside of aplication
I wanted to do this a while back but it's not realistically possible currently. It's annoyance is double by the fact there was a MMF 1.5 extension that worked like you describe...
Re: checking color for program outside of aplication
I come bearing solutions :)
Using screencapture object, set its target to the exact screen pixel you want. So if you want the pixel at 256x128, you would set its origin area to 256 x 128, size: 1px x 1px.
Capture it, load the pic into either overlay or Active Picture, and retrieve the colour in the traditional means. :)
Re: checking color for program outside of aplication
It would be better if you could do it without having to save it to a file though. The object supports capturing to the clipboard, but I haven't found any way to retrieve that data.
Re: checking color for program outside of aplication
Let me throw together an extension.
Re: checking color for program outside of aplication
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=113163
Re: checking color for program outside of aplication
Hey guys I was chatting with stevey (Was trying to create him an example) but it seems that he doesn't want to check the colour of 1 pixel.
Lets say there are a few completely white (255,255,255) colours in the screen, then if there are then he does an action or something...
So in other words, he wants to check the WHOLE screen for a certain colour, not just the one pixel.
Oh and thank you Jamie for creating that extension, stevey will surely be happy :)
EDIT: Yeah.. Jamie, your extension only checks the ONE pixel not the whole screen. Thanks anyway :)
Re: checking color for program outside of aplication
I also want it to be continually checking, not just checking a screen shot. (The pixels are moving).
Re: checking color for program outside of aplication
It doesn't check a screen shot. You could fastloop with the GetPixel expression, but I don't know how quick that would be.