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 

Capture text from Flash element in real-time.

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






PostPosted: Mon Jul 06, 2009 11:44 am    Post subject: Capture text from Flash element in real-time. Reply with quote

I want to write a script to fully automate the Typing Maniac game on Facebook:

http://apps.facebook.com/typing-maniac/?ref=ts

It's your typical typing game: words fall down the screen, and you have to type each and press enter before they reach the bottom of the page.

----------------------------------------------------------------------------------

My problem is identifying each word so that typing can be automated:

I've looked at scripts like ShowOCRUnderMouse which uses GOCR...

The problem is that the words are moving down the screen too quickly for OCR programs to process.

I've also tried decompiling the flash element and using Charles Web Debugging Proxy to try and find the source of the words the application uses.

Nothing seems to work as I need it to.

----------------------------------------------------------------------------------

Can anyone offer suggestions for how it might be possible to capture the text from this Flash element so it can be used in my script?
Back to top
Guest






PostPosted: Tue Jul 07, 2009 10:21 am    Post subject: Reply with quote

Bump...Still haven't figured this out.
Back to top
DevX



Joined: 07 Jan 2009
Posts: 43

PostPosted: Tue Jul 07, 2009 4:44 pm    Post subject: Reply with quote

if it were easy, google would be indexing flash content, and every website on earth would be flash already =\
Back to top
View user's profile Send private message
sinkfaze



Joined: 18 Mar 2008
Posts: 5043
Location: the tunnel(?=light)

PostPosted: Tue Jul 07, 2009 5:50 pm    Post subject: Reply with quote

This site was referenced a couple of weeks ago with some clues as to how to retrieve text from 3rd party apps; it looks like the DrawText and ExtTextOut from the Windows API are the key. I'm actually surprised no one here has pursued this further (despite its potential misuses); if made to work successfully it would supercede the need for OCR in many cases.
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.


Last edited by sinkfaze on Wed Jul 08, 2009 2:40 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Wed Jul 08, 2009 2:16 pm    Post subject: Reply with quote

That's a good point DevX =P

Thanks for the link Sinkfaze... DrawText and ExtTextOut look promising...

Technically this falls under one of those "potential misuses."

The thing is, I'm not doing this because I want to be top of a Facebook game, it's more of a learning exercise and I agree the benefits of being able to replace real OCR with this kind of solution are quite interesting.
Back to top
TLM



Joined: 21 Aug 2006
Posts: 2926
Location: The Shell

PostPosted: Thu Jul 09, 2009 6:21 am    Post subject: Reply with quote

sinkfaze wrote:
This site was referenced a couple of weeks ago with some clues as to how to retrieve text from 3rd party apps; it looks like the DrawText and ExtTextOut from the Windows API are the key. I'm actually surprised no one here has pursued this further (despite its potential misuses); if made to work successfully it would supercede the need for OCR in many cases.


That is so amazing! Something to try to wrap my headaround.

Thanks for the link Wink
_________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Jul 09, 2009 10:47 am    Post subject: Reply with quote

I agree with TLM... WOW!

It's going to take me a bit to sort through all that information =P
Back to top
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