Sign in to follow this  
Followers 0
MHz

#Include dir not being seen

10 posts in this topic

I have recently installed latest versions of autoit and scite4autoit3. Now I have problems syntaxchecking or compilering. All the errors point to the #include GUIConstants.au3. If I put it in the same directory as my main script, it is happy, to compile.

How does autoit etc. find the include folder?

Share this post


Link to post
Share on other sites



You might want to put in the full include path. The scripts have to be in the same directory if you are going to just put the script name. If you have your script (to be compiled) in another directory from the include script (GUIConstants) then you will have to put the full path to the GUIConstants.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

@piccaso

Checked registry prior, see new keys, autoit path looks good. But saw nothing about include directory. Saw no old keys. Installer must have taken deleted them.

@JSThePatriot

Used to just insert filename, used to be fine. Doing full address, whether long or short fails. Only works if the include file is in the same directory as the script.

:)

Share this post


Link to post
Share on other sites

@piccaso

Checked registry prior, see new keys, autoit path looks good. But saw nothing about include directory. Saw no old keys. Installer must have taken deleted them.

@JSThePatriot

Used to just insert filename, used to be fine. Doing full address, whether long or short fails. Only works if the include file is in the same directory as the script.

:)

<{POST_SNAPBACK}>

Odd... I will see if I can do some testing. (I dont have beta and that may have something to do with it). I also have never used an #include so this will take a bit of testing on my part. I will let you know what I come up with.

BTW is there an estimated arrival of beta to release?

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

tylo's Au3Check is the problem. Au3Check is run first and Au3Check isn't aware of the new registry changes. So, its still looking in the old keys.

Share this post


Link to post
Share on other sites

Thanks Valik,

You gave me some direction now. Found the old install regkey and inserted it, and fixed again. :)

For reference to add.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\HiddenSoft\AutoIt3]
"InstallDir"="C:\\Program Files\\AutoIt3"

To remove

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\HiddenSoft\AutoIt3]

Can save as *.reg files, and use to fix or cleanup, for this issue.

Should do no harm having the old key in registry, until everything is adjusted to the new keys?

Thanks for everyone's effort to help me. :)

Share this post


Link to post
Share on other sites

For reference to add.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\HiddenSoft\AutoIt3]
"InstallDir"="C:\\Program Files\\AutoIt3"

To remove

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\HiddenSoft\AutoIt3]

Hello all

I'm running Scite and V103 on W98:

Script are not in "Program Files\auto...." but in my "own folder" (to ease Back-up) where all exemples scripts were copied as well as Include Directory

already made some useful but basic scripts, tests some GUI exemples as well

When running "updateAutoIt.au3" from Scite

- GO works perfectly :whistle:

- COMPILE issues error message :) like "not finding GUIConstant.au3"

tried many changes from ".." to <..> path or fullpath without succes o:)

didn't find above "hiddensoft" keys in register

but find correct "installDir" data under key "AutoIt3"

Should I change register entry to "My onwn sccript Dir"??

THXIA for help

Lupus

---------------from an old V2 user and a V3 newbie-----------------------------

This is my first post :) and I should add:

- I'd been using AutoIt V2 several years ago but V3 is MUCH MORE powerfull!! and i feel stupid :) for not having noticed this new version

- a GREAT GREAT job is done here: the forum is very active, an i found answers to most (even all - up to now - except this one) questions I've :lmao: CONGRATULATIONS to all of u (please enjoy this congrats as I'll not repeat them in all posts :huh2: )

Share this post


Link to post
Share on other sites

I have moved the include folder to another drive to test.

Full address in #include directive runs and compiles the script.

#include <D:\Include\GUIConstants.au3>

Moving your example scripts somewhere else, may effect the buttons within the help guide, for running the examples.

Only Registry keys for "Autoit3" is ok.

You should not need to change your registry settings.

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

I have moved the include folder to another drive to test.

Full address in #include directive runs and compiles the script.

#include <D:\Include\GUIConstants.au3>

Moving your example scripts somewhere else, may effect the buttons within the help guide, for running the examples.

<{POST_SNAPBACK}>

THX f quick answer

but the problem seems to be elsewhere as u may see below:

At this time AU3 dowloaded examples reside in both default and "my own dir"

i Tried different things:

1) back to default directory "program files...", open "AutoUpdateIt.au3" from Scite , using #include <GUIConstants.au3>

- GO works fine

- COMPILE didn't find the file

2) in "program Files....", from EXPLORER,

- Run script and Compile Script both work fine!!

3) back in my "own folder..", From EXPLORER

- Run script and Compile Script both work fine!!

(may be the file used was the one in the default dir.

i'll check that with some tracing)

waiting for that check first ...... to be sure, but it looks like it has something to with some kind of Scite option and/or strange behaviour

any Idea??

Lupus

Edited by lupusbalo

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