Using OCR in Windows to capture text - Easy solution using no additional apps (WINDOWS ONLY)
Good day. I found an easy solution to capturing patch info using OCR for creating Unified libraries in Windows, without the need for downloading any OCR apps.
Here is a link to the script:
Search for the following script and copy it to your autohotkey editor:
[Juho's AutoHotkey Script Demo #19] UWP API OCR Specific Region or Entire Screen
Edit row 6 of the script to select the region you want to capture (below coordinates to capture TYPE value in Pigments):
hBitmap := HBitmapFromScreen(648, 466, 150, 50)
Now uncomment the Msgbox (row 10) and add the second row below it:
;MsgBox, % text ;find and remove all "`n" from the script to skip adding linebreaks
Clipboard := text
Save this script into the same folder as your Unify Patch Creator script and close it.
In your Unify Patch Creator script, add the following line just after you have the screen showing the page you want to capture:
Run, %A_AHKPath% "%A_ScriptDir%\*NAME OF FILE YOU SAVED FOR DOWNLOADED OCR SCRIPT"
You can now just use the command Send, ^v once you have selected where you want to paste the captured data...
This has been very helpful to me, so hope that it helps those of you looking for an easy OCR solution to creating patches in Windows