[VB.NET] Image From Screen?

03/19/2012 20:50 BeginnerDO#1
Hey,

Is there any understandable way to found image X from screen?
For example if I have set image X as elitepvpers logo. I come to this site and click "find" button -> msgbox("imagefound" + image.size + image.location....).

This above is the main question but if someone knows how to draw perfectly to screen it would be nice to know. I know how to draw dot, squares, etc but they stay on screen just until I draw other window above them. (=how to get them to stay on screen (topmost) even if I put another window above them?). Transparency form doesnt work with this.

And please only English, I dont speak any German :)
03/20/2012 00:45 vwap#2
hm.. there are two ways in my opinion.

Method 1:
Make a screenshot from the page and check every pixel with your picture.

The second method and the better one:
Download all pictures from the site, check the pixel (google for pixel - pixel check).

Greetings from AT.
03/20/2012 20:15 BeginnerDO#3
Quote:
Originally Posted by Headpuster View Post
hm.. there are two ways in my opinion.

Method 1:
Make a screenshot from the page and check every pixel with your picture.

The second method and the better one:
Download all pictures from the site, check the pixel (google for pixel - pixel check).

Greetings from AT.
Now I'm not sure does this solve my problem (and dont have now time to test...). Maybe first one could work with timer with low interval but does it make a program laggy if it needs to take picture all the time?

I dont want to tell my program's main idea yet but lets have another example:
Let's think here is "3 pictures add" (includes pictures A,B,C and they chance alternately) showing on the top of this site. I wanna do program with has timer (interval is really low) which checks:
  • If site has picture A then draw a red dot above it
  • If site has picture B then draw a green dot above it
  • If site has picture C then draw a blue dot above it


Maybe this isnt the best example but I mean that I dont want to "work inside the program". I need to have a really low-interval timer (or can I somehow check example's add chance all the time without timer?) which scans site/screen like a screenshot and then if found X it does Y.