Forum Discussion

RodolfoDias's avatar
RodolfoDias
New Contributor
6 years ago
Solved

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?

  • 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.

4 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    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.

    • RodolfoDias's avatar
      RodolfoDias
      New Contributor

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

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

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