Nikolle9203 Posted January 26, 2014 Posted January 26, 2014 Hey guys My pleasure to join this forum. I am having a bit of problem compiling my script So what i am trying to achive is to include a3x file. The code works without being compiled.Here is the example Main.au3 #include <functions.a3x> msgbox(0,"Hello","Hello autoit") msg() Functions .a3x func msg() return msgbox(0,"Bye","Bye autoit") endfunc The code works if executed without being compiled When i try to compile it , i am receiving an error : Autoit2exe error Line 1 ((filepath)) Some hex values ^ERROR Error:Unable to parse line. What could cause it ?
Danp2 Posted January 26, 2014 Posted January 26, 2014 Does it work correctly if you rename the include file to "functions.au3"? Latest Webdriver UDF Release Webdriver Wiki FAQs
Nikolle9203 Posted January 26, 2014 Author Posted January 26, 2014 Does it work correctly if you rename the include file to "functions.au3"? Yep it does.Also works when its not compiled.While compiling giving an error.
Danp2 Posted January 26, 2014 Posted January 26, 2014 So the solution is to name your files correct. A3x is for scripts that are already compiled. Latest Webdriver UDF Release Webdriver Wiki FAQs
Nikolle9203 Posted January 27, 2014 Author Posted January 27, 2014 Ok so i found the solution.The problem was im using an outdated Aut2exe ( 3.3.8.1 ).Now i can compile it. The reason i was using such an old version is because the newest one compiles without icons and version info + 200KB larger without UPX option.I thought that was a bug.Also sometimes gives "Not Valid Win32 exe" error.Do you guys know what could cause that ? Or now its by default to be without icon , larger and no version infos
Danp2 Posted January 27, 2014 Posted January 27, 2014 Or now its by default to be without icon , larger and no version infos This is correct. Look up #pragma in the help file for how to control the icon and version info. Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now