AutoHotkey Community

It is currently May 26th, 2012, 8:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: August 20th, 2009, 11:04 pm 
Offline

Joined: July 7th, 2009, 3:47 am
Posts: 7
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 20th, 2009, 11:07 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
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.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2009, 12:38 am 
Offline

Joined: January 2nd, 2008, 4:47 am
Posts: 150
Location: Freenode IRC
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.

_________________
Image

Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2009, 3:03 am 
Offline

Joined: July 7th, 2009, 3:47 am
Posts: 7
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"..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2009, 8:29 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
gocr?

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 24th, 2009, 11:25 pm 
Offline

Joined: January 2nd, 2008, 4:47 am
Posts: 150
Location: Freenode IRC
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.

_________________
Image

Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 25th, 2009, 2:15 pm 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Mickers, Pulover, tomoe_uehara and 56 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group