theguy0000 Posted October 15, 2005 Share Posted October 15, 2005 (edited) this is a UDF used to compile AutoIt scripts ;=============================================================================== ; ; Description: _compile ; Parameter(s): $s_source = AutoIt script to compile ; $s_dest = Destination Exe File ; $i_decompile = [optional] wether or not the script can be decompiled. 0 for no, 1 for yes. default is 1 ; $s_pass = [optional] passphrase to use for decompilation. this has no effect if $i_decompile is 0. For no passphrase, set this to "nopass" ; $s_icon = [optional] icon to use for compiled script ; ; Return Value(s): Success: returns 1 ; Failure: ; returns 0 if script not compiled ; returns -1 if source isn't found, or if it isn't an autoit v3 script ; returns -2 if destination isn't an exe file ; returns -3 if $s_icon isn't an icon, or isn't found. ; returns -4 if Aut2Exe.exe can't be found ; Author(s): theguy0000 < theguy0000@codewiz.xemoc.net > ; ;=============================================================================== Attached is a manual entry in the same (almost...i tried the best i could) format as the docs included with AutoIt. If you don't understand, read that. Edited October 16, 2005 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Snipz Posted October 16, 2005 Share Posted October 16, 2005 so i put a new line like this $i_decompile = 1 to not decompile? Once my friend told me that he had found Jesus. I thought to myself, "Woohoo, we're rich!" It turns out he meant something different.Sometimes I just like to lay in my bed and look up at the stars and wonder..where the hell did my roof go? Link to comment Share on other sites More sharing options...
theguy0000 Posted October 16, 2005 Author Share Posted October 16, 2005 no, you put it as a parameter. see, _compile ($s_source, $s_dest, $i_decompile=1, $s_pass="nopass", $s_icon="noicon") you would put it like this: _compile ( "C:\bar\foo\sourceFile.au3", "C:\bar\foo\DestFile.exe" [,0 [,"passphrase" [,"C:\foo\bar\icon.ico"]]]) the parameters inside brackets [] are option, but don't include the brackets in the code itself! 1 allows decompilation (default), and 0 doesnt. _compile ( "C:\bar\foo.au3", "C:\foo\bar.exe", 0 ) That would compile bar\foo.au3 to foo\bar.exe. foo\bar.exe would not be allowed to be decompiled. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Snipz Posted October 16, 2005 Share Posted October 16, 2005 (edited) _compile ($s_source, $s_dest, $i_decompile=1, $s_pass="nopass", $s_icon="C:\Program Files\Diablo II\Diablo II Loader.exe") I tried that to make it as a icon did i do something wrong? cause it didnt work and i can still decompile it Edited October 16, 2005 by Snipz Once my friend told me that he had found Jesus. I thought to myself, "Woohoo, we're rich!" It turns out he meant something different.Sometimes I just like to lay in my bed and look up at the stars and wonder..where the hell did my roof go? Link to comment Share on other sites More sharing options...
MHz Posted October 16, 2005 Share Posted October 16, 2005 You need to use a icon file with a .ico extension. Aut2Exe cannot extract icons out of executables. 0 is no decompile by my understanding. Link to comment Share on other sites More sharing options...
Snipz Posted October 16, 2005 Share Posted October 16, 2005 I figured out how to put icons in and the decompile doesnt work Once my friend told me that he had found Jesus. I thought to myself, "Woohoo, we're rich!" It turns out he meant something different.Sometimes I just like to lay in my bed and look up at the stars and wonder..where the hell did my roof go? Link to comment Share on other sites More sharing options...
theguy0000 Posted October 16, 2005 Author Share Posted October 16, 2005 (edited) 0 means decompilation is NOT allowed.1 means decompilation IS allowedIf you don't put anything for decompilation, it will automatically be set to 1.edit: added a manual entry in the first post. Edited October 16, 2005 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
peter1234 Posted October 17, 2005 Share Posted October 17, 2005 @theguy0000: Thanks. This is just what I need to compile my first GUI. This may be a dumb question, since I do not know a lot about programing, but is it possible to include any other types of files with the compile (besides the icon file)? I would like to include some .exe files so that everything can be loaded as one file. Link to comment Share on other sites More sharing options...
theguy0000 Posted October 17, 2005 Author Share Posted October 17, 2005 Peter1234 - No, thats not possible with autoit, not without running a 3rd party app completely seperate from AutoIt. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Confuzzled Posted October 17, 2005 Share Posted October 17, 2005 See help file entry for FileInstallGood luck! Link to comment Share on other sites More sharing options...
Nuffilein805 Posted October 17, 2005 Share Posted October 17, 2005 is there a way you can compile a script with your script on another pc (no autoit)? what happens with the inclusions like #include<guiconstants.au3>? is there a way you can include the files in a script(exe) to be included later on? my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
Confuzzled Posted October 18, 2005 Share Posted October 18, 2005 You could FileInstall it. Link to comment Share on other sites More sharing options...
Nuffilein805 Posted October 18, 2005 Share Posted October 18, 2005 i'm gonna try that maybe this works for me thx anyway my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
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