Jump to content

change an string without changing the compiled file size


Recommended Posts

Hi,

I'm using autoit 3.2.12.1

Let me explain my question with this example.

I have a number for example 3412.42 in my script which is given to a variable like $var1

When I compile it, the .exe file size would be 1,302 Bytes

Here is the problem, I want to change this number with a new number like 3412.53 and then I compile it, but I don't want the compiled file size to be changed even a bit !

Apparently there should be no change in it because nothing is added to it and just some characters are replaced with another ones, but it seems that there's a variable in the compiler which is added to the script and changes the size every time i compile it.

It's so important to me that i keep the size constant. It's part of my software and i can't change it.

Please help me !

thanks in advance .

Edited by lordsepid
Link to comment
Share on other sites

Hi,

I'm using autoit 3.2.12.1

Let me explain my question with this example.

I have a number for example 3412.42 in my script which is given to a variable like $var1

When I compile it, the .exe file size would be 1,302 Bytes

Here is the problem, I want to change this number with a new number like 3412.53 and then I compile it, but I don't want the compiled file size to be changed even a bit !

Apparently there should be no change in it because nothing is added to it and just some characters are replaced with another ones, but it seems that there's a variable in the compiler which is added to the script and changes the size every time i compile it.

It's so important to me that i keep the size constant. It's part of my software and i can't change it.

Please help me !

thanks in advance .

Are you using Obfuscater or anything like tiny also the version number and etc. these cab change the file size every time you compile.

Try adding a dummy $DUMMYSTRING = " "

Now if the file size after increase delete one, if decrease increase one.

Link to comment
Share on other sites

Hi,

I'm using autoit 3.2.12.1

Let me explain my question with this example.

I have a number for example 3412.42 in my script which is given to a variable like $var1

When I compile it, the .exe file size would be 1,302 Bytes

Here is the problem, I want to change this number with a new number like 3412.53 and then I compile it, but I don't want the compiled file size to be changed even a bit !

Apparently there should be no change in it because nothing is added to it and just some characters are replaced with another ones, but it seems that there's a variable in the compiler which is added to the script and changes the size every time i compile it.

It's so important to me that i keep the size constant. It's part of my software and i can't change it.

Please help me !

thanks in advance .

Obfuscator and the native encryption of the compiled script file make it hard to get exactly the same thing twice. You would at least have to disable both of those.

:D

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Obfuscator and the native encryption of the compiled script file make it hard to get exactly the same thing twice. You would at least have to disable both of those.

:D

Not encryption. It's the LZSS compression. Also UPX play a role in this also.

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