Jump to content

SciTe 1.61 released


Jos
 Share

Recommended Posts

  • Developers

@JdeB: Scite only can use position and size pre-initialized?  :D

@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.left

position.top

position.width

position.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

  • Replies 77
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Developers

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

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

Updated version of CompileScript.

Requires FindFile.au3

Somewhere in your script add.

;Icon=IconPathHere

;Password=PasswordHere

;Comp=0-4

;Nodecompile=1 or 0

#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 by bcording
Link to comment
Share on other sites

  • Developers

@bcording ... great idea...

I have added a CompileAU3 script to the standard http://www.autoitscript.com/fileman/users/jdeb/scite4autoit3.exe

It 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 Target
  • The Passphrase
  • The used Compression Level
http://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

@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

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 by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

  • Developers

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.exe

And 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 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

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 :D

Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

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.

Posted Image

Any chance of changing them to be similiar to the crimson editor's below default colours? See example below.

Posted Image

Edited by AndrewL
Link to comment
Share on other sites

  • Developers

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 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

  • Developers

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

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... :huh2::D:D :D

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

  • Administrators

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. :D
Link to comment
Share on other sites

  • Developers

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 ? :D

http://www.autoitscript.com/fileman/users/jdeb/test/compileau3.png

:huh2: 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 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...