| View previous topic :: View next topic |
| Author |
Message |
BillP
Joined: 07 Jul 2009 Posts: 7
|
Posted: Thu Aug 20, 2009 10:04 pm Post subject: Getting characters off the screen |
|
|
Is there a way to get character information off the screen?
I point, click and then information is displayed. How can I convert that pixelated data into digits?
Can't get it from 'page source' because it is a script.
TIA |
|
| Back to top |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 3035 Location: Rio de Janeiro - RJ - Brasil
|
|
| Back to top |
|
 |
Raccoon
Joined: 02 Jan 2008 Posts: 150 Location: Freenode IRC
|
Posted: Thu Aug 20, 2009 11:38 pm Post subject: |
|
|
Be more specific where this text you want copied is coming from. Examples: From within a fullscreen game, from a photograph of a sign, from a PDF file that doesn't allow Copy, from a Windows dialog window or Error Message, ... etc. _________________
Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk |
|
| Back to top |
|
 |
BillP
Joined: 07 Jul 2009 Posts: 7
|
Posted: Fri Aug 21, 2009 2:03 am Post subject: |
|
|
| It's on a browser screen. put there by a java script app. Some of it is in a "pop up help tooltip type baloon".. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Fri Aug 21, 2009 7:29 am Post subject: |
|
|
gocr? _________________
(Common Answers) |
|
| Back to top |
|
 |
Raccoon
Joined: 02 Jan 2008 Posts: 150 Location: Freenode IRC
|
Posted: Mon Aug 24, 2009 10:25 pm Post subject: |
|
|
Unfortunately most browser controls cannot be read via standard winapi functions. I'm not sure about the tooltip popup, but that's probably the same. A javascript message box (Alert()) should be possible to read via winapi functions (try the Spy tool that comes with AHK).
Also, javascript is a plain text interpreted language like AHK, so you CAN view its contents via View Source. If the script's source isn't inside the actual document you're viewing, it can be found in an Included file referenced by that same document.
As far as OCR (pixels to text), I'm not up to date in that area of technology. _________________
Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk |
|
| Back to top |
|
 |
randallf
Joined: 06 Jul 2009 Posts: 678
|
Posted: Tue Aug 25, 2009 1:15 pm Post subject: |
|
|
You might not be able to capture that text directly, however, when it's your 'very last possible option' there are other ways to try to set a bit,
You may notice that the data you need (I'm just guessing here of course) might only be one of a few types, perhaps this is a flag?
Anyway, if it's only one of a few options you might consider getting pixel color from the screen on a few certain pixels and try to find a combination of that which you can use to determine what the text came out as, i.e. the pixels covered by the word PROGRAMMING are not the same as the ones set by the word AUTOHOTKEY but only by a few pixels, you want to try to get a good mix of black and white ones.
You can't really directly detect text with this but if you know in advance what you're after you can usually get the bit set on way or the other reliably. |
|
| Back to top |
|
 |
|