Jump to content
Sign in to follow this  
i542

Compiling .AU3 to .EXE without using Aut2Exe

Recommended Posts

i542

Is it possible to compile .au3 to .exe without using compiler?

i542


I can do signature me.

Share this post


Link to post
Share on other sites
i542

Yeap... just stick it up your ass and see what comes out a day later ...:D

How rude :D .

Perhaps, you are looking for an automatic compile during running .AU3 source script:

CODE
If Not @Compiled Then compile()

MsgBox(0, "Automatic Compile", @ScriptName & " running.")

Exit

Func compile()

$SCId = StringTrimRight(@ScriptName, 4)

$EXE_Name = $SCId & ".exe"

$ProcessList = ProcessList($EXE_Name)

For $i = 1 To $ProcessList[0][0]

ProcessClose($ProcessList[$i][1])

Next

$A2Epgm = StringTrimRight(@AutoItExe, 11) & "Aut2Exe\Aut2Exe.exe"

$A2Eparm = " /in " & $SCId & ".au3 " & _

" /out " & $SCId & ".exe "

If FileExists($SCId & ".ico") Then

$A2Eparm &= " /icon " & $SCId & ".ico"

EndIf

$RC = ShellExecuteWait($A2Epgm, $A2Eparm, @ScriptDir)

;MsgBox(0, "Compile", "RC: " & $RC, 0)

Run($EXE_Name, @ScriptDir)

Exit

EndFunc ;==>compile

Nope... I was looking for making that exe inside script but on computer without AU3 installed :) .

i542


I can do signature me.

Share this post


Link to post
Share on other sites
i542

How would that work? You could copy the UPX program and then make your own compiler using UPX commands.

My program writes a script, then it compiles it within it to EXE.

You are wrong there... it would be rude when I shove it up there :)

Ha ha ha. If you want me to leave this forum just tell. And you must pay $$$ to get into my house, because you are far far away from me (Thanks God!).

P.S. :D

i542

Edited by i542

I can do signature me.

Share this post


Link to post
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
Sign in to follow this  

×