AutoHotkey Community

It is currently May 26th, 2012, 7:55 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: July 6th, 2009, 12:44 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2009, 11:21 am 
Bump...Still haven't figured this out.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2009, 5:44 pm 
Offline

Joined: January 7th, 2009, 7:03 pm
Posts: 43
if it were easy, google would be indexing flash content, and every website on earth would be flash already =\


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2009, 6:50 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
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.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Last edited by sinkfaze on July 8th, 2009, 3:40 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2009, 3:16 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 9th, 2009, 7:21 am 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
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 ;)

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 9th, 2009, 11:47 am 
I agree with TLM... WOW!

It's going to take me a bit to sort through all that information =P


Report this post
Top
  
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, joetazz, perlsmith, Retro Gamer and 70 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