Jump to content

New SciTE4AutoIt3 available with SciTE v1.75


Jos
 Share

Recommended Posts

  • Developers

Now when testing new beta Obduscator I noticed strange behaviour of AutoIt3Wrapper:

When I add icon esulted EXE size is about 25KB smaller then without this icon!

Icon is standard ICO file 766 bytes in size.

Here is testing script:

#AutoIt3Wrapper_icon=my_icon.ico

#AutoIt3Wrapper_run_obfuscator=y
#Obfuscator_parameters=/so

Func OnAutoItStart()
  msgbox(0,'1',@ScriptName)
EndFunc

Func OnAutoItExit()
  msgbox(0,'2',@ScriptName)
EndFunc

Just try to compile it with/without

#AutoIt3Wrapper_icon=my_icon.ico

EXE size on AutoIt 3.2.10:

without icon:252 KB

with icon:227 KB

Have you tried without using Obfuscator to see if there is any difference ?

The Old set of Icons is replaced by the new Ico so there could be a size differrence.

Jos

Edited by Jos
edited typo

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 128
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Now when testing new beta Obduscator I noticed strange behaviour of AutoIt3Wrapper:

When I add icon esulted EXE size is about 25KB smaller then without this icon!

Icon is standard ICO file 766 bytes in size.

Here is testing script:

#AutoIt3Wrapper_icon=my_icon.ico
 
 #AutoIt3Wrapper_run_obfuscator=y
 #Obfuscator_parameters=/so
 
 Func OnAutoItStart()
   msgbox(0,'1',@ScriptName)
 EndFunc
 
 Func OnAutoItExit()
   msgbox(0,'2',@ScriptName)
 EndFunc

Just try to compile it with/without

#AutoIt3Wrapper_icon=my_icon.ico

EXE size on AutoIt 3.2.10:

without icon:252 KB

with icon:227 KB

Not so surprising. Look at how big the original AutoIt icon is and then compare that to your < 1KB icon. The original icon is *replaced*. So around 24KB is lost. Perfectly normal and expected behavior.
Link to comment
Share on other sites

Jos, I found a different solution that works okay. I finally found the function that causes SciTE to re-style. By calling it inside Common:ReplaceDocByPattern() we can ensure the document is properly styled. It doesn't affect performance too much being called in only one place (but it does re-style the entire document). This means I can use the same fix of checking for the style being in comments to filter out the bug.

This makes me think. You've already written something that parses the grammar of AutoIt. Can the Scintilla lexer be used as a basis for a more manageable version of Au3Check? Or, I wonder, can we use Lua to piggy-back Scintilla's lexing to do on-the-fly syntax checking?

Anyway, regarding the bug. I'll post a fix later.

Link to comment
Share on other sites

  • Developers

Tidy backup folder creation.

Not sure if this is intentional.

when creating a New backup folder for storing the Tidy-Backups.

Tidy gives the default('Backup') setting more priority than the ini:backupDir setting.

so if ini:backupDir=MyBackup,

and both 'MyBackup' folder and the default 'Backup' folder don't exist.

It created a new default 'Backup' folder.

Would make sens to go with the ini:backupDir setting in this case.

M.v.G

(+ bedankt voor je extra ;func() voorbeelt.)

I decided not to create any other specified directory but in stead let Tidy display a warning in the Console:

-> Specified target backupdirectory does not exist:MyBackUp. Changing it to:c:\ScriptDIrectory\BackUp\

You didn't get this warning in the SciTE ouputpane?

I have updated the text in the helpfile with a bit more details on this:

***  Target backup directory which defaults to Scriptdir\Backup. Any other directory needs to exist or else it will use the default directory!
backupDir=

Jos :)

Edited by Jos

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 just installed the latest RC4 of AutoIt. I first uninstalled the last production release, but did not uninstall Scite4AutoIt3. I noticed the RC4 installer updated the Scite4AutoIt3 defs files to the newest version, 3.2.12.0. Was it supposed to do that?! Does this only happen if you already have Scite4AutoIt3 installed first or what?

I mean, it's awesome it does this, but I just wanted to know what the process was for installations / upgrades. Keep up the great work!

Link to comment
Share on other sites

  • Developers

I just installed the latest RC4 of AutoIt. I first uninstalled the last production release, but did not uninstall Scite4AutoIt3. I noticed the RC4 installer updated the Scite4AutoIt3 defs files to the newest version, 3.2.12.0. Was it supposed to do that?! Does this only happen if you already have Scite4AutoIt3 installed first or what?

I mean, it's awesome it does this, but I just wanted to know what the process was for installations / upgrades. Keep up the great work!

All sounds correct to me. The AutoIt3 installers deliver the updated definition files so in this case its a RC of then next production release thus should update the production definition files for SciTE4AutoIt3 as well. You do not have to have the Full version of SciTE4AutoIt3 installed because there is a "lite" version included in the AutoIt3 installer, so the definition files are always updated.

Jos :)

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

No no, I did get the message.

Just was not sure about the 'only create "Backup" folder decision'. (it did crossed my mind.)

Alternative option could be to add a remark with the ini:backup option,

something like (folder need to exits to be used) ... less printed text on tidy use. :)

M.v.G

The shown "updated" line is what I put in the INI file and Helpfile :(

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

  • 4 weeks later...

Hello Jos,

I'm have an issue with 'Open Include' tool with full paths.

For This code

#include "C:\Documents and Settings\Dev\Desktop\Scripts\Advanced PO\Misc\v9.5\Misc.au3"

I get this error

File not found at : C:\DocumentsandSettings\Dev\Desktop\Scripts\AdvancedPO\Misc\v9.5\Misc.au3 or C:\DocumentsandSettings\Dev\Desktop\Scripts\AdvancedPO\Misc\v9.5\Misc.au3

The code does indeed exist, the problem is, what I've found from reading function AutoItTools:OpenInclude from AutoItTools.lua

One Obvious issue is on line 977:

IncFile = string.gsub(IncFile,"%s","")  -- strip whitespace characters   (<<<<<< Paths with spaces will fail because all spaces are removed.

I wish I knew lua a little bit more but otherwise I wouldn't bother you.

Edited by mrRevoked
Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
Link to comment
Share on other sites

  • Developers

Yeap, that indeed looks wrong. Guess I need to come up with a regex to strip leading and trailing white-space but leave the rest.

Will have a look at that.

Try replacing it with :

IncFile = string.gsub(IncFile, "^%s*(.-)%s*$", "%1")    -- strip leading and trailing whitespace characters

:)

Edited by Jos

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