WTS Posted June 30, 2006 Share Posted June 30, 2006 (edited) I ran the latest version of scite, got it as a zip and It screwed up my settings now it can't find autoit... it made the one i have default not find it either.. C:\autoit\menu\menu 01.au3(1) : ERROR: autoit3.exe not found: C:\documents and settings\robby\desktop\my programs\autoit3\autoit3.exe ==> Changing to default AUTOIT3.exe : C:\documents and settings\robby\desktop\my programs\autoit3\aut2exe\aut2exe.exemy desktop is not the default! this C:\my programs\autoit3\beta\autoit3.exe and C:\my programs\autoit3\autoit3.exe is! Edited June 30, 2006 by WTS Link to comment Share on other sites More sharing options...
Developers Jos Posted June 30, 2006 Developers Share Posted June 30, 2006 I ran the latest version of scite, got it as a zip and It screwed up my settings now it can't find autoit... it made the one i have default not find it either.. my desktop is not the default! this C:\my programs\autoit3\beta\autoit3.exe and C:\my programs\autoit3\autoit3.exe is!If you use the zipfile, its assumed that you understand what you are doing.Use the Installer if you want the setting to be set correctly for you..... 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...
WTS Posted June 30, 2006 Author Share Posted June 30, 2006 sorry i figured it out... the compiler directives were messing with my head Link to comment Share on other sites More sharing options...
WTS Posted June 30, 2006 Author Share Posted June 30, 2006 Another question... can I run autoit and scite from a usb drive? since they're zipped and run fine witout installer I assume they're portable right? Link to comment Share on other sites More sharing options...
MHz Posted June 30, 2006 Share Posted June 30, 2006 (edited) Yes, they can work standalone. You would not be wasting your time to setup. Look at au3dir=.... in Au3.properties and set it for $(SciteDefaultHome)\.. assuming AutoIt is still the parent directory. Scite is fine with relative path operation and AutoIt should be OK also. Edit: Unless JDeB can say any different for his mighty additions that makes Scite great to use.... Edited June 30, 2006 by MHz Link to comment Share on other sites More sharing options...
Developers Jos Posted June 30, 2006 Developers Share Posted June 30, 2006 I have posted the below script before that will allow you to run AutoIt3/SciTE from a JumpDrive.... Make sure you understand what it is doing before using it... expandcollapse popup#Region Compiler directives section ;** This is a list of compiler directives used by CompileAU3.exe. ;** comment the lines you don't need or else it will override the default settings #Compiler_Prompt=n ;y=show compile menu ;** AUT2EXE setting ;** Target program Resource info #Compiler_Res_Comment=Run Autoit/SciTE from JumpDrive #Compiler_Res_Description=Run Autoit/SciTE from JumpDrive #Compiler_Res_Fileversion=1.0.1 ;File Version ; free form resource fields ... max 15 #Compiler_Res_Field=Created by|Jos van der Zande ;Free format fieldname|fieldvalue #Compiler_Res_Field=Email|jdeb at autoitscript dot com ;Free format fieldname|fieldvalue #Compiler_Run_AU3Check=y ;Run au3check before compilation #EndRegion ; ; AutoItSetOption("RunErrorsFatal", 0) AutoItSetOption("OnExitFunc", "Exitfunction") ; TrayTip("JumpKey", "Updating AutoIt3 Registry settings...", 5) Sleep(1000) ; StartFunction() ; TrayTip("JumpKey", "Updating the SciTE settings....", 5) FileChangeDir(@ScriptDir & "\SciTE\defs\") ;use this line to run Updatedefs silent and tell SciTE to use the last Production tables RunWait(@ScriptDir & "\SciTE\defs\UpdateDefs.exe prod /s", @ScriptDir, @SW_HIDE) ;use this line to run Updatedefs silent and tell SciTE to use the last Beta tables' ;RunWait(@ScriptDir & "\SciTE\defs\UpdateDefs.exe unst /s", @ScriptDir, @SW_HIDE) FileChangeDir(@ScriptDir) ; TrayTip("JumpKey", "Autoit3 and SciTE are ready for use.", 5) While FileExists(@ScriptFullPath) Sleep(10) WEnd ; ; ; Func StartFunction() ; save current registry settings and update to MEMKey Path $key = "HKLM\Software\Autoit v3\AutoIt" $word = "InstallDir" $Value = @ScriptDir Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\DefaultIcon" $word = "" $Value = @ScriptDir & '\Icons\filetype1.ico' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell" $word = "" $Value = "Edit" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Run" $word = "" $Value = "Run Script" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Run\Command" $word = "" $Value = '"' & @ScriptDir & '\AutoIt3.exe "%1" %*"' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Open" $word = "" $Value = "Open" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Open" $word = "" $Value = "Open" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Open\Command" $word = "" $Value = '"' & @ScriptDir & '\SciTe\SciTE.exe" "%1""' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Compile" $word = "" $Value = "Compile Script" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Compile\Command" $word = "" $Value = '"' & @ScriptDir & '\Aut2Exe\Au32Exe.exe "%l""' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Edit" $word = "" $Value = "Edit" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Edit\Command" $word = "" $Value = '"' & @ScriptDir & '\SciTe\SciTE.exe" "%1""' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Tidy" $word = "" $Value = "Tidy" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Tidy\Command" $word = "" $Value = '"' & @ScriptDir & '\SciTe\Tidy\tidy.exe" "%1""' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Compile with Options" $word = "" $Value = "Compile with Options" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Compile with Options\Command" $word = "" $Value = '"' & @ScriptDir & '\SciTe\CompileAU3\CompileAu3.exe" /in "%l""' Update_Registry($key, $word, $Value) EndFunc ;==>StartFunction ; ; ; Func ExitFunction() TrayTip("JumpKey", "Restoring AutoIt3 Registry settings....", 5) ; Restore to saved registry settings $key = "HKLM\Software\Autoit v3\AutoIt" $word = "InstallDir" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\DefaultIcon" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Run" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Run\Command" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Open" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Open" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Open\Command" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Compile" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Compile\Command" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Edit" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Edit\Command" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Tidy" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Tidy\Command" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Compile with Options" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Compile with Options\Command" $word = "" Restore_Registry($key, $word) FileDelete(@TempDir & "\curconfig.ini") Sleep(3000) EndFunc ;==>ExitFunction ; ;Save Current Registry settings in an INI and update the Registry Func Update_Registry($key, $word, $Value) $oldVal = RegRead($key, $word) $sword = $word If $word = "" Then $sword = "Default" $skey = StringReplace($key, '\', '_') IniWrite(@TempDir & "\curconfig.ini", $skey, $sword, $oldVal) RegWrite($key, $word, "REG_SZ", $Value) EndFunc ;==>Update_Registry ; ;Restore the saved Registry settings from the INI file. Func Restore_Registry($key, $word) $sword = $word If $word = "" Then $sword = "Default" $skey = StringReplace($key, '\', '_') $Value = IniRead(@TempDir & "\curconfig.ini", $skey, $sword, "") If $Value = "" Then RegDelete($key, $word) Else If StringInStr($Value, '"') Then $Value = '"' & $Value & '"' RegWrite($key, $word, "REG_SZ", $Value) EndIf $Value = IniDelete(@TempDir & "\curconfig.ini", $skey, $sword) EndFunc ;==>Restore_Registry 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...
ken82m Posted November 8, 2009 Share Posted November 8, 2009 (edited) I have posted the below script before that will allow you to run AutoIt3/SciTE from a JumpDrive.... Make sure you understand what it is doing before using it... expandcollapse popup#Region Compiler directives section ;** This is a list of compiler directives used by CompileAU3.exe. ;** comment the lines you don't need or else it will override the default settings #Compiler_Prompt=n ;y=show compile menu ;** AUT2EXE setting ;** Target program Resource info #Compiler_Res_Comment=Run Autoit/SciTE from JumpDrive #Compiler_Res_Description=Run Autoit/SciTE from JumpDrive #Compiler_Res_Fileversion=1.0.1 ;File Version ; free form resource fields ... max 15 #Compiler_Res_Field=Created by|Jos van der Zande ;Free format fieldname|fieldvalue #Compiler_Res_Field=Email|jdeb at autoitscript dot com ;Free format fieldname|fieldvalue #Compiler_Run_AU3Check=y ;Run au3check before compilation #EndRegion ; ; AutoItSetOption("RunErrorsFatal", 0) AutoItSetOption("OnExitFunc", "Exitfunction") ; TrayTip("JumpKey", "Updating AutoIt3 Registry settings...", 5) Sleep(1000) ; StartFunction() ; TrayTip("JumpKey", "Updating the SciTE settings....", 5) FileChangeDir(@ScriptDir & "\SciTE\defs\") ;use this line to run Updatedefs silent and tell SciTE to use the last Production tables RunWait(@ScriptDir & "\SciTE\defs\UpdateDefs.exe prod /s", @ScriptDir, @SW_HIDE) ;use this line to run Updatedefs silent and tell SciTE to use the last Beta tables' ;RunWait(@ScriptDir & "\SciTE\defs\UpdateDefs.exe unst /s", @ScriptDir, @SW_HIDE) FileChangeDir(@ScriptDir) ; TrayTip("JumpKey", "Autoit3 and SciTE are ready for use.", 5) While FileExists(@ScriptFullPath) Sleep(10) WEnd ; ; ; Func StartFunction() ; save current registry settings and update to MEMKey Path $key = "HKLM\Software\Autoit v3\AutoIt" $word = "InstallDir" $Value = @ScriptDir Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\DefaultIcon" $word = "" $Value = @ScriptDir & '\Icons\filetype1.ico' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell" $word = "" $Value = "Edit" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Run" $word = "" $Value = "Run Script" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Run\Command" $word = "" $Value = '"' & @ScriptDir & '\AutoIt3.exe "%1" %*"' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Open" $word = "" $Value = "Open" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Open" $word = "" $Value = "Open" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Open\Command" $word = "" $Value = '"' & @ScriptDir & '\SciTe\SciTE.exe" "%1""' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Compile" $word = "" $Value = "Compile Script" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Compile\Command" $word = "" $Value = '"' & @ScriptDir & '\Aut2Exe\Au32Exe.exe "%l""' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Edit" $word = "" $Value = "Edit" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Edit\Command" $word = "" $Value = '"' & @ScriptDir & '\SciTe\SciTE.exe" "%1""' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Tidy" $word = "" $Value = "Tidy" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Tidy\Command" $word = "" $Value = '"' & @ScriptDir & '\SciTe\Tidy\tidy.exe" "%1""' Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Compile with Options" $word = "" $Value = "Compile with Options" Update_Registry($key, $word, $Value) $key = "HKCR\AutoIt3Script\Shell\Compile with Options\Command" $word = "" $Value = '"' & @ScriptDir & '\SciTe\CompileAU3\CompileAu3.exe" /in "%l""' Update_Registry($key, $word, $Value) EndFunc ;==>StartFunction ; ; ; Func ExitFunction() TrayTip("JumpKey", "Restoring AutoIt3 Registry settings....", 5) ; Restore to saved registry settings $key = "HKLM\Software\Autoit v3\AutoIt" $word = "InstallDir" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\DefaultIcon" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Run" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Run\Command" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Open" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Open" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Open\Command" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Compile" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Compile\Command" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Edit" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Edit\Command" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Tidy" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Tidy\Command" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Compile with Options" $word = "" Restore_Registry($key, $word) $key = "HKCR\AutoIt3Script\Shell\Compile with Options\Command" $word = "" Restore_Registry($key, $word) FileDelete(@TempDir & "\curconfig.ini") Sleep(3000) EndFunc ;==>ExitFunction ; ;Save Current Registry settings in an INI and update the Registry Func Update_Registry($key, $word, $Value) $oldVal = RegRead($key, $word) $sword = $word If $word = "" Then $sword = "Default" $skey = StringReplace($key, '\', '_') IniWrite(@TempDir & "\curconfig.ini", $skey, $sword, $oldVal) RegWrite($key, $word, "REG_SZ", $Value) EndFunc ;==>Update_Registry ; ;Restore the saved Registry settings from the INI file. Func Restore_Registry($key, $word) $sword = $word If $word = "" Then $sword = "Default" $skey = StringReplace($key, '\', '_') $Value = IniRead(@TempDir & "\curconfig.ini", $skey, $sword, "") If $Value = "" Then RegDelete($key, $word) Else If StringInStr($Value, '"') Then $Value = '"' & $Value & '"' RegWrite($key, $word, "REG_SZ", $Value) EndIf $Value = IniDelete(@TempDir & "\curconfig.ini", $skey, $sword) EndFunc ;==>Restore_Registry Great thanks man, exactly what I was looking for. I updated lines 16 & 17 Removed: AutoItSetOption("RunErrorsFatal", 0) Changed to AutoItSetOption("OnExitFunc", "Exitfunction") to OnAutoItExitRegister("Exitfunction") I also added HKCU\Software\Autoit v3\AutoIt\Include for my custom UDF's Edited November 8, 2009 by ken82m "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains." 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