Vis2 - OCR()

Post your working scripts, libraries and tools
Croq
Posts: 7
Joined: 27 Sep 2017, 16:32

Re: Vis2 - Simple OCR

19 Oct 2017, 15:48

Not sure what I'm doing wrong but when i try to run it i get:

>"C:\Program Files\AutoHotkey\AutoHotkey.exe" /ErrorStdOut "\\READYSHARE\USB_Storage\Backups\AHK Scripts\BitHero\test.ahk"
\\READYSHARE\USB_Storage\Backups\AHK Scripts\Gdip_All.ahk (66) : ==> Expected ":="
Specifically: ="", y="", w="", h="", Alpha=255)
>Exit code: 2 Time: 0.1808
iseahound
Posts: 114
Joined: 13 Aug 2016, 21:04
GitHub: iseahound

Re: Vis2 - Simple OCR

19 Oct 2017, 17:48

Try asking around in the Ask For Help forum. It's because Gdip_All uses the old assignment operator "=" (equals sign) instead of the modern one ":=". This error has never happened to me.

Perhaps you have #Warn on the top of your script? (remove it.) Try adding #NoEnv as well.

You could fix it by replacing all equals sign assignments with the ":=" operator. Try updating your Gdip_All to see if that helps.

This isn't an error within Vis2.
iseahound
Posts: 114
Joined: 13 Aug 2016, 21:04
GitHub: iseahound

Re: Vis2 - Simple OCR

19 Oct 2017, 17:51

burque505 wrote:Thank you very much, iseahound. This should come in quite handy. Needs AHK_L, correct?


Yes. Ahk_L
Croq
Posts: 7
Joined: 27 Sep 2017, 16:32

Re: Vis2 - Simple OCR

19 Oct 2017, 18:56

Perfect, thanks iseahound
Croq
Posts: 7
Joined: 27 Sep 2017, 16:32

Re: Vis2 - Simple OCR

19 Oct 2017, 19:21

Could you post your Gdip_all.ahk?
iseahound
Posts: 114
Joined: 13 Aug 2016, 21:04
GitHub: iseahound

Re: Vis2 - Simple OCR

19 Oct 2017, 20:07

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



Official Link | Forum | Gdip Tutorials

Side Note: A large part of the script is still under development - Syntax will change!
Croq
Posts: 7
Joined: 27 Sep 2017, 16:32

Re: Vis2 - Simple OCR

20 Oct 2017, 07:11

thanks! It's awesome!
Croq
Posts: 7
Joined: 27 Sep 2017, 16:32

Re: Vis2 - Simple OCR

20 Oct 2017, 07:26

for some reason it appears to be getting more than what is in my x,y,w,h.
Johana
Posts: 129
Joined: 02 May 2017, 02:34

Re: Vis2 - Simple OCR

20 Oct 2017, 14:36

Anyway to make it support ÅÄÖ an other special chars?
iseahound
Posts: 114
Joined: 13 Aug 2016, 21:04
GitHub: iseahound

Re: Vis2 - OCR()

08 Nov 2017, 21:54

Update: Now supports multiple data sources, including Files, URLs, Rectangle Array (screenshot coordinates), Windows, Base 64 encoded images, and GDI Bitmaps/hBitmaps.

Of course if you leave the input blank ^#c:: OCR() then you will still be able to access the nice GUI.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 10 guests