MHz Posted November 22, 2004 Share Posted November 22, 2004 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? Link to comment Share on other sites More sharing options...
piccaso Posted November 22, 2004 Share Posted November 22, 2004 (edited) there where some changes in the registry...Edit:jon's post about it Edited November 22, 2004 by piccaso CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
JSThePatriot Posted November 22, 2004 Share Posted November 22, 2004 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) Link to comment Share on other sites More sharing options...
MHz Posted November 22, 2004 Author Share Posted November 22, 2004 @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. Link to comment Share on other sites More sharing options...
JSThePatriot Posted November 22, 2004 Share Posted November 22, 2004 @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.@JSThePatriotUsed 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) Link to comment Share on other sites More sharing options...
Valik Posted November 22, 2004 Share Posted November 22, 2004 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. Link to comment Share on other sites More sharing options...
MHz Posted November 23, 2004 Author Share Posted November 23, 2004 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 removeWindows 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. Link to comment Share on other sites More sharing options...
lupusbalo Posted January 29, 2005 Share Posted January 29, 2005 For reference to add.Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\HiddenSoft\AutoIt3] "InstallDir"="C:\\Program Files\\AutoIt3"To removeWindows Registry Editor Version 5.00 [-HKEY_LOCAL_MACHINE\SOFTWARE\HiddenSoft\AutoIt3]Hello allI'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 Directoryalready made some useful but basic scripts, tests some GUI exemples as wellWhen running "updateAutoIt.au3" from Scite - GO works perfectly - COMPILE issues error message like "not finding GUIConstant.au3"tried many changes from ".." to <..> path or fullpath without succes didn't find above "hiddensoft" keys in registerbut find correct "installDir" data under key "AutoIt3"Should I change register entry to "My onwn sccript Dir"??THXIA for helpLupus---------------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 CONGRATULATIONS to all of u (please enjoy this congrats as I'll not repeat them in all posts ) Link to comment Share on other sites More sharing options...
MHz Posted January 29, 2005 Author Share Posted January 29, 2005 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. Link to comment Share on other sites More sharing options...
lupusbalo Posted January 29, 2005 Share Posted January 29, 2005 (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 answerbut 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 file2) 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 behaviourany Idea??Lupus Edited January 29, 2005 by lupusbalo Link to comment Share on other sites More sharing options...
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