AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting characters off the screen

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
BillP



Joined: 07 Jul 2009
Posts: 7

PostPosted: Thu Aug 20, 2009 10:04 pm    Post subject: Getting characters off the screen Reply with quote

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
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Thu Aug 20, 2009 10:07 pm    Post subject: Reply with quote

http://www.autohotkey.com/forum/viewtopic.php?t=11186
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
Raccoon



Joined: 02 Jan 2008
Posts: 150
Location: Freenode IRC

PostPosted: Thu Aug 20, 2009 11:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
BillP



Joined: 07 Jul 2009
Posts: 7

PostPosted: Fri Aug 21, 2009 2:03 am    Post subject: Reply with quote

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
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Aug 21, 2009 7:29 am    Post subject: Reply with quote

gocr?
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
Raccoon



Joined: 02 Jan 2008
Posts: 150
Location: Freenode IRC

PostPosted: Mon Aug 24, 2009 10:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
randallf



Joined: 06 Jul 2009
Posts: 678

PostPosted: Tue Aug 25, 2009 1:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group