| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Mon Jul 06, 2009 11:44 am Post subject: Capture text from Flash element in real-time. |
|
|
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
|
Posted: Tue Jul 07, 2009 10:21 am Post subject: |
|
|
| Bump...Still haven't figured this out. |
|
| Back to top |
|
 |
DevX
Joined: 07 Jan 2009 Posts: 43
|
Posted: Tue Jul 07, 2009 4:44 pm Post subject: |
|
|
| if it were easy, google would be indexing flash content, and every website on earth would be flash already =\ |
|
| Back to top |
|
 |
sinkfaze
Joined: 18 Mar 2008 Posts: 5043 Location: the tunnel(?=light)
|
Posted: Tue Jul 07, 2009 5:50 pm Post subject: |
|
|
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 |
|
 |
Guest
|
Posted: Wed Jul 08, 2009 2:16 pm Post subject: |
|
|
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
|
Posted: Thu Jul 09, 2009 6:21 am Post subject: |
|
|
| 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  _________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞ |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Jul 09, 2009 10:47 am Post subject: |
|
|
I agree with TLM... WOW!
It's going to take me a bit to sort through all that information =P |
|
| Back to top |
|
 |
|