Help Appreciated! Vis2 Lib Error After Export as ahk/exe

Advanced Macro Recorder/Editor.

Moderator: Pulover

JWIO
Posts: 2
Joined: 11 Mar 2021, 10:03

Help Appreciated! Vis2 Lib Error After Export as ahk/exe

Post by JWIO » 11 Mar 2021, 10:44

Hi Everyone!

I am a newbie for AHK and PMC. My current project utilizes OCR/image search and it is working as intended in PMC. However, I ran into a Vis2 lib issue after exporting my project to EXE or AHK. During EXE export, an error prompts "#include file cannot be opened. Specifically %My_Project_Folder_Path%\<Vis2>".

I can export my project as an ahk file without any issues, but after export, when running my project as an ahk file, an error prompts "Line Text: #include <Vis2> Error: Function library not found" . And program exits.

What should I do to resolve this issue? Is it because my settings are not set properly? Or is it causing by PMC installation issue? Maybe a bug?
I understand this is somehow related to the OCR library Vis2 being missing in exported file/folder. I guess I can download Vis2 from its GitHub and modify my ahk file include path to make the ahk work, but I am not sure how to resolve the EXE export error.

Any help/insight would be greatly appreciated. :)

Thanks

PMC 5.4.0
Windows 10
Autohotkey v1.1.33.00

Edit: Yes, I tried to put Vis2 project folder from its GitHub into my AutoHotKey library folder and path (all three locations listed in AHK docs https://www.autohotkey.com/docs/Functions.htm#lib ). No luck.

User avatar
Pulover
Posts: 612
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: Help Appreciated! Vis2 Lib Error After Export as ahk/exe

Post by Pulover » 11 Mar 2021, 11:03

Vis2 bin and lib folders must be placed in the same directory as your ahk/exe file.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)

JWIO
Posts: 2
Joined: 11 Mar 2021, 10:03

Re: Help Appreciated! Vis2 Lib Error After Export as ahk/exe

Post by JWIO » 11 Mar 2021, 11:25

@Pulover
Fixed! And just bought you a coffee via PayPal. Thank you so much for your work. It saved us A LOT of clicking, typing and checking :D

Post Reply

Return to “Pulovers Macro Creator”