Jump to content
Sign in to follow this  

Unknown Function Name

Recommended Posts



I am using version of AutoIt.

I have scripts that run OK within Scite but when I compile I get an error unknown function name.

If I use an earlier beta I don't have this problem.

I seen another thread on the forum about this but the resolution was not clear to me.

Here is an example

#include <Date.au3> 
$sShortDayName = _DateDayOfWeek( @WDAY, 1 )

If I compile with production and then run the exe I get this message

AutoIt Error
Line 0 DateDayOfWeek.exe
$sShortDayName = _DateDayOfWeek( @WDAY,1 )
$sShortDayName = ^ERROR

Error: Unknown function name.

Suggestions on things to check or try would be good.



Share this post

Link to post
Share on other sites

Check if there are spaces or tabs in front of the #include statement and if so remove them .. this is a known bug...



Obviously I did not look hard enough!

Strange that the thread that I did find did not mention this though and it went for 2 pages.

Thanks for the speedy reply.



Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this