WinAutomation - windows automation software with macro recorder
      3 replies [Last post]
      scotteve
      scotteve's picture
      User offline. Last seen 9 weeks 5 days ago. Offline
      Joined: 06/15/2010
      Posts: 2

      It would be nice to be able to OCR an image area an place it into a variable. The automation script could then react to the text.

      Thanks.

      D.M.Altizer
      User offline. Last seen 1 week 5 days ago. Offline
      Joined: 01/12/2010
      Posts: 197
      Re: OCR image area.

       I'm not sure whether there are plans to add this feature in the future, but this is actually doable at the moment. The only thing that you need is Microsoft Office with MODI (Microsoft Office Document Imaging) installed. It is not included in the default options when you install Microsoft Office, so you will manually have to select that it will be installed.

      MODI is the OCR engine that ships with Microsoft Office. You can use VBScript to OCR an image file using MODI and retrieve the results in a variable in WinAutomation.

      I have attached 2 jobs that demonstrate how you can OCR the entire screen: depending on your OS type (32 or 64 bit) you should run the corresponding job. 

      Finally, you can OCR only the active window if you change the "Take Screenshot" action to grab a screenshot of the foreground window.

      AttachmentSize
      OCR_Screen_32bit_version.waj 16 KB
      OCR_Screen_64bit_version.waj 17 KB
      __________________

      ==Dedicated Automation Solutions==

      __________________

      ==Dedicated Automation Solutions==

      scotteve
      scotteve's picture
      User offline. Last seen 9 weeks 5 days ago. Offline
      Joined: 06/15/2010
      Posts: 2
      Re: OCR image area.

      Thanks for the solution.

      D.M.Altizer
      User offline. Last seen 1 week 5 days ago. Offline
      Joined: 01/12/2010
      Posts: 197
      Re: OCR image area.

       No problem! :)

      __________________

      ==Dedicated Automation Solutions==

      __________________

      ==Dedicated Automation Solutions==