Jump to content

Recommended Posts

Posted

Hi,

I am using version 3.2.4.9 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 )
MsgBox(0,"ShortDayName",$sShortDayName)

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.

Thanks

VW

Posted

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

:whistle:

Doh!

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.

Cheers

VW

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
×
×
  • Create New...