Sign in to follow this  
Followers 0
PrgSkidmark

Included Date.au3 and giving "Unknown function name"

8 posts in this topic

I downloaded the AutoIt3SciTE 12/17/2005 update.

I installed it.

When I compiled one of my scripts that include Date.au3 it returns an error.

So I created a test script:

#include <Date.au3>

Dim $sYesterday

$sYesterday = _DateAdd( 'd',-1, _NowCalcDate())

MsgBox(4096, "Yesterday", $sYesterday)

And after compile I get this error:

C:\Program Files\AutoIt3\Include\Date.au3 (1159) : ==> Unknown function name.:

$SYSTEMTIME = DllStructCreate("ushort;ushort;ushort;ushort;ushort;ushort;ushort;ushort")

$SYSTEMTIME = ^ ERROR

I hope this isn't duplicated, I searched the forums and the net.

Share this post


Link to post
Share on other sites



I downloaded the AutoIt3SciTE 12/17/2005 update.

I installed it.

When I compiled one of my scripts that include Date.au3 it returns an error.

So I created a test script:

#include <Date.au3>

Dim $sYesterday

$sYesterday = _DateAdd( 'd',-1, _NowCalcDate())

MsgBox(4096, "Yesterday", $sYesterday)

And after compile I get this error:

I hope this isn't duplicated, I searched the forums and the net.

Did you forget to Beta Compile it. :P


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

I downloaded the AutoIt3SciTE 12/17/2005 update.

I installed it.

When I compiled one of my scripts that include Date.au3 it returns an error.

So I created a test script:

#include <Date.au3>

Dim $sYesterday

$sYesterday = _DateAdd( 'd',-1, _NowCalcDate())

MsgBox(4096, "Yesterday", $sYesterday)

And after compile I get this error:

I hope this isn't duplicated, I searched the forums and the net.

if you're using scite, make sure you're using alt-f7 to compile, or tools>beta compile. right clicking on the script and choosing compile will use the stable compiler unless you've used the betatoggle, in the extras folder of your install

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

Do you have the regular AutoIt installed with the installer or zip? If not you need to use your #includes like this: #include "Path_To_Include_File_Date.au3"

The main path for the installer is: Drive:\Program Files\AutoIt3


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Do you have the regular AutoIt installed with the installer or zip? If not you need to use your #includes like this: #include "Path_To_Include_File_Date.au3"

The main path for the installer is: Drive:\Program Files\AutoIt3

Ok I went into tools compile, and changed to Aut2Exe in the beta folder and it worked!

I tried both in explorer and neither worked the first time, I swear.

I used the install programs for all.

I didn't have this problem with my previous versions.

So the includes folder is not beta, but the compiler has to be?

What if I want to use the stable compiler?

Thanks,

Doug

Share this post


Link to post
Share on other sites

What if I want to use the stable compiler?

That brings me to another question.

Do I ever need to use the stable compiler?

The beta's got the better features right?

Share this post


Link to post
Share on other sites

That brings me to another question.

Do I ever need to use the stable compiler?

The beta's got the better features right?

personally i always use the beta, but i can't think of a good reason to limit yourself to the production version

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

That brings me to another question.

Do I ever need to use the stable compiler?

The beta's got the better features right?

Lots of things have changed since the "Stable" release. A lot of functions have been added and if you wish to make use of them you need to use the Beta version.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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  
Followers 0