cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling/Disabling Text Recognition at run time

SOLVED
RodolfoDias
New Contributor

Enabling/Disabling Text Recognition at run time

I got a Question, I want to enable the text recognition for a specific window just for a certain moment on my test and then disable this window after I read it. Because there is many of that window on the system we use and i'm worried about execution time case I had to let it read every window.
There is a command to enable or disable the text recognition?

1 ACCEPTED SOLUTION

Accepted Solutions
tristaanogre
Community Hero

Re: Enabling/Disabling Text Recognition at run time

Unfortunately, no.  Text recognition is something that is set up at design time of the project and, once the project run is started, it cannot be altered.  Think of it as a compiler directive when compiling an application.  They are settings and such that are built in to the executable that is compiled.  You can't change those in the EXE file itself, only in the development environment before the EXE is created.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

4 REPLIES 4
tristaanogre
Community Hero

Re: Enabling/Disabling Text Recognition at run time

Unfortunately, no.  Text recognition is something that is set up at design time of the project and, once the project run is started, it cannot be altered.  Think of it as a compiler directive when compiling an application.  They are settings and such that are built in to the executable that is compiled.  You can't change those in the EXE file itself, only in the development environment before the EXE is created.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

RodolfoDias
New Contributor

Re: Enabling/Disabling Text Recognition at run time

So it won't be a performance problem either, right?

tristaanogre
Community Hero

Re: Enabling/Disabling Text Recognition at run time

I'm not sure about performance, to be honest.  In my use of Text Recognition, it doesn't really seem to impact performance.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
RodolfoDias
New Contributor

Re: Enabling/Disabling Text Recognition at run time

Thank you so much for your replies, i'll give it a try

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors