A syntax error Topic is solved
A syntax error
A syntax error
#include <libName>is used inconsistently in the documentation. The lib folder is not recognized
#include <libName>is used inconsistently in the documentation. The lib folder is not recognized
Re: A syntax error
Please be specific about the issue you encountered and where you think the documentation is inconsistent. Are you using v1 or v2? Are you sure your file is in a valid library folder? Show specifically what didn't work and where your library folder is located.
Re: A syntax error
This problem was found in v2, I placed files strictly according to this linkboiler wrote: ↑24 Mar 2023, 07:03Please be specific about the issue you encountered and where you think the documentation is inconsistent. Are you using v1 or v2? Are you sure your file is in a valid library folder? Show specifically what didn't work and where your library folder is located.
https://www.autohotkey.com/docs/v2/Scripts.htm#lib
https://www.autohotkey.com/docs/v2/lib/_Include.htm
It is recognizable when using the full path, not when using the file name. For example:
I put the file in [A_ScriptDir "Lib\mylib.ahk"]
and it doesn't work when I use:
#include mylib.ahk
Re: A syntax error
and nowhere does it claim it would. u should have written #include <mylib>
Re: A syntax error Topic is solved
That is not a bug. You are not using the correct syntax. If you want your script to find it in one of the library folders, you must follow what the documentation shows. Using the name you have given your file, then the line would be literally:
The above does not include any stand-in characters or anything. You put the name of your library file without the extension enclosed in angle brackets.
Moving topic from “Bug Reports” to “Ask for Help (v2)”.
Edit: Was typing my reply as swagfag posted.
Code: Select all
#Include <mylib>
Moving topic from “Bug Reports” to “Ask for Help (v2)”.
Edit: Was typing my reply as swagfag posted.
Re: A syntax error
I've tried not using the extension but it still doesn't workboiler wrote: ↑29 Mar 2023, 06:31That is not a bug. You are not using the correct syntax. If you want your script to find it in one of the library folders, you must follow what the documentation shows. Using the name you have given your file, then the line would be literally:The above does not include any stand-in characters or anything. You put the name of your library file without the extension enclosed in angle brackets.Code: Select all
#Include <mylib>
Moving topic from “Bug Reports” to “Ask for Help (v2)”.
Edit: Was typing my reply as swagfag posted.
Re: A syntax error
Is that really the only change you made after reading the above two posts? From my post above:
The above does not include any stand-in characters or anything. You put the name of your library file without the extension enclosed in angle brackets.
The above does not include any stand-in characters or anything. You put the name of your library file without the extension enclosed in angle brackets.