I'm trying to look for a solution to screen scraping in Java. I've had a look on our dear friend google, but most of my searching leads to Xquery, which I believe only works for HTML pages by sifting through the source code. That doesn't really work for me.
In an ideal world, I would like to create a java application that when invoked (most likely by some button) would identify a region on the screen, pick up some value, and then call a URL or command
The first issues I can see is how can a Java app "scan" the screen. Say for example I have outlook open, I would like this application to find the outlook window, find "inbox" down the list of folders, then "read" that section and find out how many emails I have. It would return something like "Inbox(5)"
I'm reasonably confident that once I have the info scraped, I can deal with it as I please, but my main task is how to find the correct window, and OCR text.
Can anyone give me a heads up on if this is possible? A pointer to a good API would be even better!
How will it "find" the Outlook window? What if the window is partially obscured? What if the user isn't using the default Outlook layout (I don't, when I'm forced to use it)? What if they're using a difficult-to-OCR font as their system font?
A simple "java +ocr" search will pull out some OCR libraries, but the arbitrary nature of what you're trying to do makes me think you're in for more work than you realize.