Docfxit Posted September 23 Share Posted September 23 I'd like to add my own #include folder in addition to the normal one in autoit3. I am trying to add it to the registry in Windows 10. I added it with this .bat file: SET _KEY=Software\AutoIt v3\Autoit REG ADD "HKCU\%_KEY%" /f /v Include /d "C:\\Programs\\AutoIt3\\Include;@ScriptDir\\FirefoxInfo" cmd /k In my AutoIt code I have: #include <simplespy.au3> I have in the directory @ScriptDir\FirefoxInfo\simplespy.au3 When I run my AutoIt code I get an error on the above #include line: error: can't open include file <simplespy.au3> <ctrl>1 doesn't show the added registry key !* Found always open with Win7 :AutoIt3Script !* Fixed by removing Registry key : "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.au3\Userchoice" * HKCR\.au3 Default : AutoIt3Script * HKLM\SOFTWARE\Classes\.au3\ShellNew: C:\Windows\SHELLNEW\Template.au3 (File Exists) * HKCR\.au3 ShellNew : C:\Windows\SHELLNEW\Template.au3 (File Exists) ****************************************************************************************************************************************** * Explorer shell options: * HKCR\AutoIt3Script\shell: * => Default Action:Run * Compile => Command:"C:\Programs\AutoIt3\Aut2Exe\Aut2Exe.exe" /in "%l" * Compile with Options => Command:"C:\Programs\AutoIt3\AutoIt3.exe" "C:\Programs\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /in "%l" * CompileX64 => Command:"C:\Programs\AutoIt3\Aut2Exe\Aut2Exe_x64.exe" /in "%l" * CompileX86 => Command:"C:\Programs\AutoIt3\Aut2Exe\Aut2Exe.exe" /in "%l" * Debug => Command:"C:\Programs\AutoIt3\AutoIt Debugger\AutoIt Debugger.exe" "%1" * Edit => Command:"C:\Programs\AutoIt3\SciTE\SciTE.exe" "%1" * Open => Command:"C:\Programs\AutoIt3\SciTE\SciTE.exe" "%1" * Run => Command:"C:\Programs\AutoIt3\AutoIt3.exe" "%1" %* * RunX64 => Command:"C:\Programs\AutoIt3\AutoIt3_x64.exe" "%1" %* * RunX86 => Command:"C:\Programs\AutoIt3\AutoIt3.exe" "%1" %* * Tidy => Command:"C:\Programs\AutoIt3\SciTE\Tidy\Tidy.exe" "%1" ****************************************************************************************************************************************** * User SciTE info: * SCITE_USERHOME:C:\Users\Gary\AppData\Local\AutoIt v3\SciTE: * Directory missing: C:\Users\Gary\AppData\Local\AutoIt v3\SciTE\SciTE Jump * SciTEUSer.Properties: *----------------------------------------------------------------------------------------- import au3.UserUdfs import au3.keywords.user.abbreviations ****************************************************************************************************************************************** How can I get SciTE to find my added #include folder? Link to comment Share on other sites More sharing options...
Developers Jos Posted September 24 Developers Share Posted September 24 14 hours ago, Docfxit said: I added it with this .bat file: SET _KEY=Software\AutoIt v3\Autoit REG ADD "HKCU\%_KEY%" /f /v Include /d "C:\\Programs\\AutoIt3\\Include;@ScriptDir\\FirefoxInfo" cmd /k ...and why do you think this is correct? Windows does know @Scriptdir and neither is that converted by AutoIt3 when it reads the registry content! ...but why update the registry at all? Just use a relative reference for the include: #include <firefoxinfo\simplespy.au3> SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Docfxit Posted September 25 Author Share Posted September 25 Using relative reference worked great in finding simplespy.au3. I looked all over trying to find out how to do that. Within the same folder of firefoxinfo there are many other files that simplespy.au3 needs. Will simplespy.au3 be able to find the other files? I have tried running my code and I'm not getting any errors but I don't know how simplespy.au3 is supposed to run so I don't know if it's seeing the other files. There is also a way to have my own include folder specified within SciTE but it wasn't clear to me how to do that. That way all include files will be able to look into that folder. Thank you very much for answering my post. I'm trying to find a way to select buttons within Firefox. That's why I'm trying simplespy.au3. So far either I'm not using it correctly or it isn't working. Do you know a better way to identify buttons? Thank you, Link to comment Share on other sites More sharing options...
Developers Jos Posted September 25 Developers Share Posted September 25 2 hours ago, Docfxit said: Will simplespy.au3 be able to find the other files? Did you try to get that answered? ;-) SOLVE-SMART 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Docfxit Posted September 25 Author Share Posted September 25 Thank you for the reply... I don't know if it's not finding the other files or if simplespy.au3 normally doesn't show me what I need to work with the buttons. Link to comment Share on other sites More sharing options...
Developers Jos Posted September 25 Developers Share Posted September 25 Yes you do! An error would be shown when it doesn't. 😀 Jemboy 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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