Jump to content

using #Include <WinAPI> and #Include <NetShare> Takes too much Memory.


Recommended Posts

hi,

when i try to use any

#Include <AnyFile>

the size of my script and exe increases.

i want to use

#Include <NetShare>

but it increases the size to more then 100 more.

but i dont want to increase size of my program.

i have edited the NetShare.au3 file (Origional saved) and deleted all other function which i am not using in my script.

voila ... the size was decreased to 50kb more.

can anyone help me how to decrease more size.

i have also used highest compression but same result.

thanx in advance.

OS: Windows XP SP2, AutoIt version: 3.2.10.0Help The Great Forum Which is Used by You For Help.01 - Always Respect The Forum Members.02 - Use Search Before Posting or making any new Thread.03 - Help The Newbies.
Link to comment
Share on other sites

hi,

when i try to use any

#Include <AnyFile>

the size of my script and exe increases.

i want to use

#Include <NetShare>

but it increases the size to more then 100 more.

but i dont want to increase size of my program.

i have edited the NetShare.au3 file (Origional saved) and deleted all other function which i am not using in my script.

voila ... the size was decreased to 50kb more.

can anyone help me how to decrease more size.

i have also used highest compression but same result.

thanx in advance.

I do believe the english version of the german post above is: http://www.autoitscript.com/forum/index.ph...;hl=cleanscript

But yes, it should do what you want. It removes all, from what I understand, functions that are not used in those UDF from your completed script so that it is a smaller footprint on your system.

-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

Link to comment
Share on other sites

thanx for the help.

can i use any other exe compressor insted of upx.

i tried many but all are giving error.

OS: Windows XP SP2, AutoIt version: 3.2.10.0Help The Great Forum Which is Used by You For Help.01 - Always Respect The Forum Members.02 - Use Search Before Posting or making any new Thread.03 - Help The Newbies.
Link to comment
Share on other sites

I prefer Obfuscator /striponly

It removes all not used constants/functions from script and all include files at compilation

Just paste this at top of your script and compile it by F7 from latest Scite4AutoIt3

#AutoIt3Wrapper_run_obfuscator=y
#Obfuscator_parameters=/so

EDIT: typos

Edited by Zedna
Link to comment
Share on other sites

Thanx !

This is a good idea.

OS: Windows XP SP2, AutoIt version: 3.2.10.0Help The Great Forum Which is Used by You For Help.01 - Always Respect The Forum Members.02 - Use Search Before Posting or making any new Thread.03 - Help The Newbies.
Link to comment
Share on other sites

hi,

i want to use the following code without #Include <NetShare.au3>

;>>>>> Share on Network <<<<<<;
#Include <NetShare.au3>
;
DirCreate(@HomeDrive & "\Office\Shared")
FileSetAttrib(@HomeDrive & "\Office", "N")
FileCopy($PTCL, @HomeDrive & "\Office\Shared\Updated Result Sheet.xls")
_Net_Share_ShareAdd(@ComputerName, "Annoucement", 0, @HomeDrive & "\Office\Shared", -1)

because it increases the size of script and exe file.

i just want to add sharing in my Project so please help me .

otherwise please tell me how to decrease its size.

i have also used the highest compression but same result.

when i removes #Include <NetShare.au3> it decreases the size of exe to 150kb.

please help me how can i add a share without using #Include <NetShare.au3>

Thanks in advance.

This quote comes from your dup topic.. but what are you doing to get your script to 150kb? Compiling a one line script with UPX and the highest compression gets me to 250kb (I'm using 3.2.10). Someone else who knows more about how autoit compiles could give a better answer, but I believe since autoit packages run time files together with your script, as opposed to machine code compiling, you can only get so low. How much lower do you need it to be and why?
While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd
Link to comment
Share on other sites

i want to make my program in around 250kb-265kb but when i only adds

#Include <NetShare.au3>

my file size increased to 375KB (125kb more.)

it means this function eats at least 125kb memory.

we have very low speed connection here thats why i want to make this program in low memory.

thanx ! for the help.

OS: Windows XP SP2, AutoIt version: 3.2.10.0Help The Great Forum Which is Used by You For Help.01 - Always Respect The Forum Members.02 - Use Search Before Posting or making any new Thread.03 - Help The Newbies.
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...