Recognising Graphical Text and setting Logic

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
alexg
Newbie
Posts: 3
Joined: Sat Apr 26, 2008 7:40 pm

Recognising Graphical Text and setting Logic

Post by alexg » Sat Apr 26, 2008 8:06 pm

Hello,
I'm trying to make a macro. Could you give me some advice?

I've got a prog where you Roll Dice and a column of numbers appears (shown as an image, graphical text) on the screen.
I'm trying to write a script where i click on the Roll Dice button continiously until one of the numbers becomes 10.

I know how to point the mouse cursor and set left-click on repeat, but how do i set the Logic - If there is a '10' in the image , stop click. I'm not sure how to recognize graphical text aswell. :(

Could you help me, please?

Looking forward to your early reply,
Alex

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sat Apr 26, 2008 9:02 pm

It is going to depend on what kind of text this is - whether it really IS text as far as the system is concerned or just part of a graphic which LOOKs like text. It may not be possible at all.

See the following articles:
http://www.mjtnet.com/blog/2007/12/12/c ... reen-text/
http://www.mjtnet.com/blog/2008/01/03/s ... e-example/
http://www.mjtnet.com/blog/2007/10/08/s ... able-text/
http://www.mjtnet.com/blog/2006/06/06/s ... ical-text/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

alexg
Newbie
Posts: 3
Joined: Sat Apr 26, 2008 7:40 pm

Post by alexg » Sun Apr 27, 2008 8:48 pm

Hmm well it's part of the graphics which looks like text.
I guess it's not possible - i tried TextCapture it didn't see the numbers.
Thanks though.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts