Jump to content
Jos

January 2, 2019: New SciTE4AutoIt3 available with the updated SciTE v4.1.2 release

Recommended Posts

Even though there's a difference, it's so small does it REALLY matter? These EXEs are tiny in comparison to the smallest drive they could be used on I hardly see why it matters.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites
3 hours ago, NSUSpray said:

example_callback.exe - 980 KB

Au3Stripper ended with errors, using original scriptfile.rc:1

That is why the file size is different, otherwise, the out put of the stripper would show, as it shows in example.exe

>Running Au3Stripper (19.102.1901.3)  from:C:\ProgFilesSelf\AutoIt3\SciTE\Au3Stripper cmdline:
- 1.61 Iteration 1 Strip Functions result: Output  2769 lines, stripped 13558 Func lines and 11797 Commentlines
- 2.38 Iteration 2 Strip Variables result: Output  422 lines and stripped 2347 lines
- 2.41 Iteration 3 Strip Variables result: Output  342 lines and stripped 80 lines
- 2.45 Iteration 4 Strip Variables result: Output  339 lines and stripped 3 lines
- 2.48 Iteration 5 Strip Variables result: Output  339 lines and stripped 0 lines
+> Source    28480 lines 1344593 Characters.
+> Stripped  15988 Func/Var lines and  11797 comment lines, Total 1328832 Characters.
+> Saved     97% lines 98% Characters.
+> Au3Stripper v19.102.1901.3 finished created:C:\ProgFilesSelf\PortableStuff\ControlViewer\testThis\example_stripped.au3
+>22:18:36 Au3Stripper ended.rc:0

 

Share this post


Link to post
Share on other sites
Posted (edited)

Au3Stripper ended with errors, using original scriptfile.rc:1

The *_stripped.au3 is there but it exit with errors and is now using the original *.au3 for compilation, not the *_stripped.au3 one  ;) 

PS: ..and leaving the stripped file there, is good for troubleshooting. So is not a flaw to leave it there.

Edited by argumentum
clarification on the stripped file

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, NSUSpray said:

But how do errors affect size so much? Resulting example_stripped.au3 and example_callback_stripped.au3 are identifical!

That is the whole purpose of au3stripper, to strip the shitload of included code not used by the script.

Quote

+> Stripped  15988 Func/Var lines and  11797 comment lines, Total 1328832 Characters.


I have indeed changed the default that, in case errors are detected, the original script is used, because too many people simply ignored the messages from au3stripper and complained about the script not working anymore.
This can be overridden when you are sure your script isn't crippled by adding this directive:

#AutoIt3Wrapper_Au3stripper_OnError=ForceUse  ;(C/S/ForceUse) Continue/Stop on Errors/Continue using stripped source in Exe (Default=C)

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
40 minutes ago, Jos said:

That is the whole purpose of au3stripper, to strip the shitload of included code not used by the script.

I have indeed changed the default that, in case errors are detected, the original script is used…

Then why the result of the stripper with errors (that is, when a full-fledged original code is taken instead of stripped, as you say) is compiled into an executable file with a smaller size than when errors do not occur?

Share this post


Link to post
Share on other sites
9 hours ago, NSUSpray said:

Then why the result of the stripper with errors (that is, when a full-fledged original code is taken instead of stripped, as you say) is compiled into an executable file with a smaller size than when errors do not occur?

Though I covered that in my previous post or do you mean this question:

Quote

Resulting example_stripped.au3 and example_callback_stripped.au3 are identifical!

.. which I do not understand as normally the original script contains only your code and misses the include files code lines.
So please give me some exact data en, as requested, a simple example showing me what you mean as the posted example is not clear to me what you are saying. (sorry )

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I used to be worried about the size of the AutoIt compiled program, but not any more as my programs are now used on larger scaled computers. 
 

Share this post


Link to post
Share on other sites
Posted (edited)
On 4/28/2019 at 10:55 AM, Jos said:

I have indeed changed the default that, in case errors are detected, the original script is used, because too many people simply ignored the messages from au3stripper and complained about the script not working anymore.
This can be overridden when you are sure your script isn't crippled by adding this directive:

#AutoIt3Wrapper_Au3stripper_OnError=ForceUse  ;(C/S/ForceUse) Continue/Stop on Errors/Continue using stripped source in Exe (Default=C)

 

Thank you, Jos! I got it. In version 16 there were errors, in the window I chose “continue”, the stripper continued his work and the output was a small executable file. In version 19 errors also occurred, but the window did not appear, the stripper was automatically turned off and the output was a large executable file.

I added the ForceUse directive and now the executable file is small in size again!

Edited by NSUSpray

Share this post


Link to post
Share on other sites

So I was in remote desktop and moved it to the other monitor, that I left with DPI to 150% and, long story short.

; https://www.autoitscript.com/forum/topic/182423-wrong-screen-resolution-displayed-by-autoit-macros/?do=findComment&comment=1310175
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_HiDpi=Y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

If Not (@Compiled ) Then DllCall("User32.dll","bool","SetProcessDPIAware")

looks good in the Wrapper  :) 

Share this post


Link to post
Share on other sites

trailing spaces in script - is there a option to keep/delete in SciTE4AutoIt3?

It seems I somehow enabled their deletion, but don't know how to make SciTE to keep them back instead...

Share this post


Link to post
Share on other sites
1 hour ago, Iczer said:

It seems I somehow enabled their deletion, but don't know how to make SciTE to keep them back instead...

That is the default behaviour as they normally don't serve any purpose. :) 
... but I can only assume you didn't first open the Helpfile that comes with the full SciTE4AutoIt3 version, as it is documented.

Quote
strip.trailing.spaces
strip.trailing.spaces.filepattern
Strips trailing white spaces from the file while saving.
The global strip.trailing.spaces property can be overridden for files that match a pattern by using the file pattern forms:
strip.trailing.spaces.*.yaml=0
or
strip.trailing.spaces.$(file.patterns.yaml)=0

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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

  • Similar Content

    • By SgtHugoStiglitz
      HI people,
                        I got a questions, I maintain code in autoIT and every time I compile a new version or modification, Scite generate 2 folders. One folder is finish by released and the other is tentative. I try to make some google search, but never find answer would satisfied myself. The dev who was maintain it before were using AutoIt3Wrapper_GUI, and I don't know if it's related. I look both folder, but they seem pretty identical, but I would like to know what it's the difference between those to folder. Anyone have a clue?
    • By user4157124
      ConsoleWrite('>Message here.' & @CRLF) outputs colored text (per + > - ! characters).
      ConsoleWrite('warning' & @TAB & '38' & @TAB & 'more text ...' & @CRLF) enables jump to line 38 on doubleclick.

      Using "jump to line" format, only red and pink text coloring seems possible (simply prefixing color directives to output-text disables jump to line functionality). Is it possible to combine the two (define custom color while keeping "jump to line" functionality)?
    • By mannworks00
      After testing various schemes (themes) in the settings for the newest SciTE editor (v. 4.1.2), I discovered that I wasn't able to fully reset it back to its original colors (See snapshot). Specifically, after applying the "__SciTE4AutoIt3_Dark ==> Dark SciTE4AutoIt3 Color scheme."
      The problem: The Line number column and the Output console do not reset back to their original colors.
      The Solution: Delete or edit the user config file. You can safely delete the config file because it will completely regenerate on SciTE restart- with it's factory (out of the box) color scheme.
      I also wrote a small script that will do it programatically: How to reset SciTE scheme in version 4.1.2.
       
       

    • By kellariluukku
      Hello.
      I'm using SciTE v3.3.14.5 I think, and I find this very annoying (GIF):
      https://i.gyazo.com/e60b5d94b8c16d217be4010e208d7042.mp4
       
      I've searched around but found nothing that helped including this:
      https://www.autoitscript.com/forum/topic/100517-stop-scite-removing-tab-indentations/
       
      So the problem obviously is that when I go to a new line after "EndIf", it removes the tab which I don't want to happen.
      Is there any fix?
       
      I've tried to change some configs such as 
          Line 183: # Indentation     Line 185: indent.size=0     Line 187: #indent.auto=0     Line 188: indent.automatic=0     Line 189: indent.opening=0     Line 190: indent.closing=0     Line 191: #tab.indents=0     Line 192: #backspace.unindents=0 strip.trailing.spaces=0 But nothing seems to get rid of this.
       
      Thanks
    • By Skysnake
      >"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /prod /in "C:\AutoIt\pegasus\wings.au3" +>08:02:43 Starting AutoIt3Wrapper v.19.102.1901.0 SciTE v.4.1.2.0 Keyboard:00000409 OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\x\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\x\AppData\Local\AutoIt v3\SciTE -> No changes made.. >Running Au3Stripper (19.102.1901.0) from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline: -### StripOnly/StripFunc Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: _1p2 c:\program files (x86)\autoit3\include\ie.au3(2572,1): Warning for line:$__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $__g_sIEUserErrorHandler) -### StripOnly/StripFunc Error: Found Call() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: _1te c:\program files (x86)\autoit3\include\sqlite.au3(609,1): Warning for line:$iCbRval = Call($sCallBack, $aDataRow) -### StripOnly/StripFunc Error: Found Call() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: _1te c:\program files (x86)\autoit3\include\sqlite.au3(625,1): Warning for line:$iCbRval = Call($sCallBack, $aDataRow) My issue is specifically with the Call($sCallBack, xyz) part.  I declared a Global with that name and thought I had it sorted.  Previous releases appear content with that solution... Current I get this.
      Question are these:
      Should there be a default $sCallBack define in the provided include? What exactly should the "user defined" Callback function look like? And where is it defined? Sorry I am lost.
       
       
×
×
  • Create New...