Jump to content

Recommended Posts

Posted

No those region, endregion code is still in your script.

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

  • Moderators
Posted

JohnOne,

You can leave them in - I do and my scripts compile and run without problem. :)

I believe the interpreter just ignores them. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Moderators
Posted

JohnOne,

If you want to reduce your script to a minimum then add these directives at the top and compile from within SciTE:

#AutoIt3Wrapper_Run_Obfuscator=y
#Obfuscator_Parameters=/sf /sv /om /cs=0 /cn=0

The unused variables and functions in the includes will be removed; all comments, unused directives and blank lines in the script are removed; and remaining variables and functions renamed with very short names (which also speeds up the execution). :)

Your original script is untouched - you will find a ScriptName_Obfuscated.au3 file in the same folder and it is this which is compiled. Very large savings if you comment a lot - as I do and you seem to as well! ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

And if you use Obfuscator then it does it for you.

Edit: I was watching a video. I didn't see Melba's post as I was in the process of creating this message but got distracted by Epic Rap Battles of History.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

I use obfuscater in that fashion to get rid of unwanted/needed stuff, and I know a few kb doesn't really add much

but just needed to know if there was a way to auto do it.

I suppose there is

search/replace #reg with ;, same with #end and let compiler/obfuscator do the rest :)

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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
  • Recently Browsing   0 members

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