Developers Jos Posted June 1, 2004 Author Developers Share Posted June 1, 2004 @JdeB: Scite only can use position and size pre-initialized? @josbe, its either full screen or environment defaults according the included Scite documentation. CyberSlug also mentioned this, so maybe its something you and Cyberslug can post on their website as a feature request ?position.leftposition.topposition.widthposition.height Set the initial window size and position. If these are omitted then the environment's defaults are used. If the width or height are -1 then the window is maximised. 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...
CyberSlug Posted June 1, 2004 Share Posted June 1, 2004 CyberSlug also mentioned this, so maybe its something you and Cyberslug can post on their website as a feature request ?What is the website address? Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Developers Jos Posted June 1, 2004 Author Developers Share Posted June 1, 2004 What is the website address?You could post it at their sourceforge project web : https://sourceforge.net/tracker/?atid=35243...439&func=browse 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...
Josbe Posted June 2, 2004 Share Posted June 2, 2004 ...so maybe its something you and Cyberslug can post on their website as a feature request ?Sure. Thxs. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
bcording Posted June 2, 2004 Share Posted June 2, 2004 (edited) Great work on SciTe! How about adding in custom icons, password, and even the new do not decompile for compiled scripts? Similar to CompileScript http://www.autoitscript.com/forum/index.ph...l=compilescriptI forgot about the new compression level settings too! Edited June 2, 2004 by bcording Link to comment Share on other sites More sharing options...
bcording Posted June 2, 2004 Share Posted June 2, 2004 I found the answer. In au3.properties make this change. From: command.build.*.au3=$(autoit3dir)\aut2exe\Auto2Exe.exe /in "$(FilePath)" To: command.build.*.au3=$(autoit3dir)\aut2exe\CompileScript.exe "$(FilePath)" Link to comment Share on other sites More sharing options...
bcording Posted June 2, 2004 Share Posted June 2, 2004 (edited) Updated version of CompileScript.Requires FindFile.au3Somewhere in your script add.;Icon=IconPathHere;Password=PasswordHere;Comp=0-4;Nodecompile=1 or 0expandcollapse popup#Include "FindFile.au3" Opt("ExpandEnvStrings", 0) ;0=don't expand, 1=do expand Opt("MustDeclareVars", 1) ;0=no, 1=require pre-declare Opt("RunErrorsFatal", 1) ;1=fatal, 0=silent set @error Opt("TrayIconDebug", 1) ;0=no info, 1=debug line info Opt("TrayIconHide", 0) ;0=show, 1=hide tray icon Global $Password = "" Global $Icon = "" Global $Comp = "" Global $NoDecompile = 0 Global $Aut2ExePath, $ret Local $CmdLineValue $Aut2ExePath = RegRead("HKEY_LOCAL_MACHINE\Software\Hiddensoft\AutoIT3","InstallDir") & "\Aut2Exe" If @Error = -1 Then MsgBox(0,"Error","AutoIT Version 3 is not installed.") Exit EndIf If $CmdLine[0] = 0 Then $CmdLineValue = "" Else $CmdLineValue = $CmdLine[1] EndIf Select Case $CmdLineValue = "Setup" FileCopy(@ScriptFullPath,$Aut2ExePath,1) RegWrite("HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Compile\Command","BACKEDUP","REG_SZ",$Aut2ExePath & "\Aut2Exe.exe") RegWrite("HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Compile\Command","","REG_SZ",$Aut2ExePath & "\" & @SCRIPTNAME & ' "' & $CmdLine[1] & '"') Case $CmdLineValue = "Remove" Dim $BatchName, $FileHandle RegWrite("HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Compile\Command","","REG_SZ",$Aut2ExePath & "\Aut2Exe.exe") RegDelete("HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Compile\Command","BACKEDUP") $BatchName = @tempdir & '\Delete_' & @ScriptName & '.bat') $FileHandle = FileOpen(@tempdir & '\Delete_' & @ScriptName & '.bat') FileWrite($FileHandle,":loop" & @CRLF) FileWrite($FileHandle,'Del "' & @ScriptFullPath & '"' & @CRLF) FileWrite($FileHandle,'If Exist "' & @ScriptFullPath & '" Goto loop' & @CRLF) FileWrite($FileHandle,'Del ' & $BatchName & @CRLF) Run(@Comspec & ' /c "' & $BatchName '"',@TempDir,@SW_Hide) Case $CmdLineValue = "" $CmdLineValue = FileOpenDialog("Choose AU3 File","C:\","AutoIT File (*.au3;*.aut)",3) If @Error Then Exit Compile($CmdLineValue) Case Else Compile($CmdLineValue) EndSelect Func Compile($AutFile) Local $Switch FindOptions($AutFile) $Switch = "/in """ & $AutFile & """" If $Comp <> "" Then $Switch = $Switch & " /comp " & $Comp If $NoDecompile = 1 Then $Switch = $Switch & " /nodecompile" If $Icon <> "" Then $Switch = $Switch & " /icon """ & $Icon & """" If $Password <> "" and $NoDecompile = 0 Then $Switch = $Switch & " /pass """ & $Password & """" RunWait($Aut2ExePath & "\Aut2Exe.exe " & $Switch) SoundPlay(@WindowsDir & "\media\chimes.wav",1) exit(0) EndFunc Func FindOptions($AutFile) Local $Line = "" Local $File, $tmp $File = FileOpen($AutFile, 0) If $File = -1 Then return 0 ; Read in lines of text until the EOF is reached While 1 $Line = FileReadLine($File) If @error = -1 Then ExitLoop $Line = StringStripWS($Line,3) Select Case StringLeft($Line,13) = ";NoDecompile=" If FileGetVersion($Aut2ExePath & "\Aut2Exe.exe") > "3.0.101.0" Then $tmp = StringTrimLeft($Line,13) If $tmp <> 0 Then $NoDecompile = 1 EndIf Case StringLeft($Line,6) = ";Comp=" If FileGetVersion($Aut2ExePath & "\Aut2Exe.exe") > "3.0.101.0" Then $tmp = StringTrimLeft($Line,6) If $tmp >= 0 and $tmp <= 4 Then $Comp = $tmp EndIf Case StringLeft($Line,10) = ";Password=" $Password = StringTrimLeft($Line,10) If $Password = "" Then $Password = InputBox("CompileScript", "Enter the passphrase.", "", "",-1,120) EndIf Case StringLeft($Line,6) = ";Icon=" $Icon = StringTrimLeft($Line,6) If $Icon = "" Then $Icon = InputBox("CompileScript", "What icon?.", "", "",-1,120) EndIf If $Icon <> "" then If not fileexists($Icon) then $Ret = FindFile(@ProgramFilesDir & "\Autoit3\",$Icon,12) If $Ret <> 0 then $Icon = $Ret[1] EndIf EndIf If Not FileExists($Icon) then $Icon = "" EndSelect Wend FileClose($File) EndFunc Edited June 2, 2004 by bcording Link to comment Share on other sites More sharing options...
Developers Jos Posted June 2, 2004 Author Developers Share Posted June 2, 2004 @bcording ... great idea...I have added a CompileAU3 script to the standard http://www.autoitscript.com/fileman/users/jdeb/scite4autoit3.exeIt will be started with Ctrl+F7. (F7 still runs aut3exe)Also added a shortcut to the right mouse click on AU3 file called "Compile with options"You will be able to change/update:The ICON .The TargetThe PassphraseThe used Compression Levelhttp://www.autoitscript.com/fileman/users/jdeb/test/compileau3.png 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...
emmanuel Posted June 2, 2004 Share Posted June 2, 2004 @bcording ... great idea...I have added a CompileAU3 script to...thus creating a difference between F7 and Ctrl-F7... and is totally awesome! "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
emmanuel Posted June 2, 2004 Share Posted June 2, 2004 (edited) errr... whoops? I got this error when trying to compile with options, both in SciTE and from the right-click option: --------------------------- Aut2Exe Error --------------------------- Error: Unable to execute upx.exe to compress stub file. --------------------------- OK --------------------------- It does work to do the regular Compile from either location. Edited June 2, 2004 by emmanuel "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Developers Jos Posted June 2, 2004 Author Developers Share Posted June 2, 2004 (edited) errr... whoops?I got this error when trying to compile with options, both in SciTE and from the right-click option:---------------------------Aut2Exe Error---------------------------Error: Unable to execute upx.exe to compress stub file.---------------------------OK ---------------------------It does work to do the regular Compile from either location.what do you have for this registry entry ?HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\Aut2Exe.exeAnd do you have UPX.exe in that directory ?This registry entry should contain the correct directory for AUT2EXE.EXE. as far as i know... Edited June 2, 2004 by JdeB 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...
emmanuel Posted June 2, 2004 Share Posted June 2, 2004 (edited) Ok, my registry key was set to something else, changing it back to what it should be fixed it, and reinstalling AutoIt also reset that key as it should be. the options work fine for both vers... and another Thank You to JdeB for SciTE Edited June 2, 2004 by emmanuel "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
AndrewL Posted June 2, 2004 Share Posted June 2, 2004 (edited) I find SciTe's default colour for the line numbers and quoted string constants a little hard on the eyes after a while. See example below. Any chance of changing them to be similiar to the crimson editor's below default colours? See example below. Edited June 2, 2004 by AndrewL Link to comment Share on other sites More sharing options...
Developers Jos Posted June 2, 2004 Author Developers Share Posted June 2, 2004 (edited) Made some additions to the Compile.au3 to check if the 3 necessary files are avialable in the current AUT2EXE directory from the registry and will prompt for the correct directory if any of them is missing.Also show the AUT2EXE directory and version number in the GUI.Added the /nodecompile option to the commandline and the Allow decompile checkbox to the GUI. They will only show when the version if > 3.0.101.The compileau3.exe also supports the commandline options like aut2exe:Valid Arguments are: /in ScriptFile /out Targetfile /icon IconFile /pass passphrase /comp 0 to 4 (Lowest to Highest) (or /compress)http://www.autoitscript.com/fileman/users/jdeb/test/compileau3.png Edited June 18, 2004 by JdeB 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...
Developers Jos Posted June 2, 2004 Author Developers Share Posted June 2, 2004 I find SciTe's default colour for the line numbers and quoted string constants a little hard on the eyes after a while. See example below.Any chance of changing them to be similiar to the crimson editor's below default fonts? See example below.You can customize the fonts size/colors etc..Check the helpfile that comes with the installset (within Scite -> Help/ Scite Help).There is a separate page on customizing it.I would be interested, when you have setup you own color scheme, to see if we can make that the default. Just mail it to me I would be happy to have a look at it. 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...
emmanuel Posted June 2, 2004 Share Posted June 2, 2004 Added the /nodecompile option to the commandline and the Allow decompile checkbox to the GUI. They will only show when the version if > 3.0.101.I swear, still gets me all excited every time I see something I requested go into a product... first the /compress and now this... :D "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Administrators Jon Posted June 2, 2004 Administrators Share Posted June 2, 2004 I find SciTe's default colour for the line numbers and quoted string constants a little hard on the eyes after a while. See example below.Heh, I find that much tougher on my eyes. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Josbe Posted June 3, 2004 Share Posted June 3, 2004 Excellent idea about the compiler. A new Aut2Exe! AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Administrators Jon Posted June 3, 2004 Administrators Share Posted June 3, 2004 Excellent idea about the compiler. A new Aut2Exe! Tut, after I spent ages making Aut2Exe show percentage complete for big files Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Developers Jos Posted June 3, 2004 Author Developers Share Posted June 3, 2004 (edited) Added a Button to CompileAU3 to select which version of aut2exe you want to compile your script with... Anything else you worked on for a long time and you would like to have added ? http://www.autoitscript.com/fileman/users/jdeb/test/compileau3.png Just re-uploaded because it was still showing the debug message in stead of actually running aut2exe... http://www.autoitscript.com/fileman/users/jdeb/scite4autoit3.exe Edited June 3, 2004 by JdeB 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