fopetesl Posted August 22, 2017 Posted August 22, 2017 On 8/21/2017 at 6:42 PM, Jos said: Talking about errors: This will also give an error when you Compile.... right? Jos Expand Actually, Jos, no it doesn't. Thanks, BrewManNH, nice novice prompt in the right direction. The most powerful number in the Universe. Zero.
Developers Jos Posted August 22, 2017 Developers Posted August 22, 2017 On 8/22/2017 at 4:53 PM, fopetesl said: Actually, Jos, no it doesn't. Expand It does for me assuming you run the Full SciTE4AutoIt3, which runs AutoIt3Wrapper. So show me the total SciTE outputpane information when running the script please. 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.
fopetesl Posted August 22, 2017 Posted August 22, 2017 Jos, thanks for the input but you have to note you're talking to a total newb. I think I am running SciTE4AutoIt3 but perhaps not from what you say. How to check? The most powerful number in the Universe. Zero.
Developers Jos Posted August 22, 2017 Developers Posted August 22, 2017 On 8/22/2017 at 4:54 PM, Jos said: So show me the total SciTE outputpane information when running the script please. Expand 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.
fopetesl Posted August 22, 2017 Posted August 22, 2017 I feel like I'm back in Primary school. The "outputpane" is immediately under the script? All it says is >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\S3_GUI\HauterS3 with_Tabs1.au3" >Exit code: 4294967295 Time: 13.11 The most powerful number in the Universe. Zero.
Developers Jos Posted August 22, 2017 Developers Posted August 22, 2017 That shows you are running the light version, not the full SciTE4Autoit3 installer one. See my signature for details where to find that. 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.
fopetesl Posted August 22, 2017 Posted August 22, 2017 OK. Thanks again. Back tomorrow. Pete The most powerful number in the Universe. Zero.
fopetesl Posted August 23, 2017 Posted August 23, 2017 OK. Got there. But. Is AutoStripper actually working? >"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /Prod /AU3check /in "C:\S3_GUI\ncat\sAte.au3" +>08:34:37 Starting AutoIt3Wrapper v.17.224.935.0 SciTE v.3.7.3.0 Keyboard:00000809 OS:WIN_7/ CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\admin\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\admin\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.14.2) params:-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w 7 from:C:\Program Files (x86)\AutoIt3 input:C:\S3_GUI\ncat\sAte.au3 +>08:34:37 AU3Check ended.rc:0 +>08:34:37 AutoIt3Wrapper Finished. >Exit code: 0 Time: 0.548 The most powerful number in the Universe. Zero.
Developers Jos Posted August 23, 2017 Developers Posted August 23, 2017 On 8/23/2017 at 7:36 AM, fopetesl said: But. Is AutoStripper actually working? Expand It is not ran or else it would have shown up in the output. You do have this in the script?: #AutoIt3Wrapper_Run_Au3Stripper=y 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.
fopetesl Posted August 23, 2017 Posted August 23, 2017 (edited) I have now, Jos. I also now have three files: 23/08/2017 09:12 146,915 sAte_stripped.au3 23/08/2017 09:12 918,016 sAte.exe 23/08/2017 09:12 916 sAte.au3 The exe file is still same size as before compiling with SciTE4Autoit3 . This is usual? I've searched for information on 'stripping' but help seems scarce, note my missing "=y" >"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /prod /in "C:\S3_GUI\ncat\sAte.au3" +>09:45:25 Starting AutoIt3Wrapper v.17.224.935.0 SciTE v.3.7.3.0 Keyboard:00000809 OS:WIN_7/ CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\admin\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\admin\AppData\Local\AutoIt v3\SciTE -> No changes made.. >Running AU3Check (3.3.14.2) params:-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w 7 from:C:\Program Files (x86)\AutoIt3 input:C:\S3_GUI\ncat\sAte.au3 +>09:45:29 AU3Check ended.rc:0 >Running Au3Stripper (17.224.935.0) from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline: +> 0 Au3Stripper v17.224.935.0 finished merging 6047 lines of code, stripped 2968 comment lines and Merged 116 Continuation lines. +> Created:C:\S3_GUI\ncat\sAte_stripped.au3 with 2963 lines. +>09:45:29 Au3Stripper ended.rc:0 >Running AU3Check (3.3.14.2) params:-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w 7 from:C:\Program Files (x86)\AutoIt3 input:C:\S3_GUI\ncat\sAte_stripped.au3 +>09:45:29 AU3Check ended.rc:0 >Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe /in "C:\S3_GUI\ncat\sAte_stripped.au3" /out "C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AU1D46.tmp.exe" /nopack /comp 2 +>09:45:30 Aut2exe.exe ended.C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AU1D46.tmp.exe. rc:0 +>09:45:30 Created program:C:\S3_GUI\ncat\sAte.exe +>09:45:31 AutoIt3Wrapper Finished. >Exit code: 0 Time: 5.879 Edited August 23, 2017 by fopetesl added compile output The most powerful number in the Universe. Zero.
Developers Jos Posted August 23, 2017 Developers Posted August 23, 2017 On 8/23/2017 at 8:33 AM, fopetesl said: The exe file is still same size as before compiling with SciTE4Autoit3 . This is usual? Expand Should be smaller as it stripped nearly 300 comment lines, but I guess you have the MergeOnly parameter specified in the Au3Stripper options? The SciTE4AutoIt3 Helpfile (found under help in SciTE) should tell you most of the information needed for AU3Stripper. 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.
fopetesl Posted August 23, 2017 Posted August 23, 2017 Thanks, again, Jos. I'd only looked under 'old' ScITE not this 'new' one. I'll check the Mergeonly options. The most powerful number in the Universe. Zero.
Developers Jos Posted August 23, 2017 Developers Posted August 23, 2017 (edited) Just remove the /MO or /MergeOnly option from the #Au3Stripper_Parameters= line and you should be in business. Actually, thinking about it, you are right and with the Mergeonly active the result EXE will be the same size as aut2exe also strips the comments by default. Jos Edited August 23, 2017 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.
fopetesl Posted August 24, 2017 Posted August 24, 2017 OK, removed /MO, final exe reduced from 896Kb to 839Kb. Have I missed something with aut3exe? The most powerful number in the Universe. Zero.
Developers Jos Posted August 24, 2017 Developers Posted August 24, 2017 What did you think it would reduce to? Just tested a compile with one short line of code and the EXE is 872Kb with v3.3.14.2 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.
fopetesl Posted August 24, 2017 Posted August 24, 2017 Don't know what I actually expected. I had it in mind I'd see the same size for a large'ish compiled C code file usually on a par, e.g. code = 60KB, exe = 60KB. .au3 code = 27KB, .au3 stripped = 61KB, exe = 863KB. Just seems a large exe even when 'optimised'. Thanks for your input. Some things get clearer day by day. The most powerful number in the Universe. Zero.
Developers Jos Posted August 24, 2017 Developers Posted August 24, 2017 The thing is that a "compiled" script actual is the script source packed together with the AutoIt3 stub and it remains an interpreter setup. There is no real compiler as yet. 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.
fopetesl Posted August 24, 2017 Posted August 24, 2017 Ah! When I look at the binary exe file it doesn't look like it could be (easily) reverse engineered. You begin to worry me as to how to make the end code secure. The most powerful number in the Universe. Zero.
RTFC Posted August 24, 2017 Posted August 24, 2017 On 8/24/2017 at 11:29 AM, fopetesl said: how to make the end code secure Expand @fopetesl: If you're worried about that (and your scripts should run only in authorised environments), see CodeCrypter in my Sig. Regarding undeclared globals, my CodeScanner (also in CodeCrypter bundle) can collect this information (for easy pasting). My Contributions and Wrappers Reveal hidden contents BitMaskSudokuSolver BuildPartitionTable CodeCrypter CodeScanner DigitalDisplay Eigen4AutoIt FAT Suite HighMem MetaCodeFileLibrary OSgrid Pool RdRand SecondDesktop SimulatedAnnealing Xbase I/O
fopetesl Posted August 25, 2017 Posted August 25, 2017 Nice one, @RTFC. Keep me thinking for a few days So the resultant exe file before enCryption is easily reverse engineered? Not interested in doing same myself but there are some really clever people out there who just might. Thanks for the links. The most powerful number in the Universe. Zero.
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