Jump to content

( @Compiled vs. Compiled script ) = IsSelfExecutable()


Recommended Posts

"It is possible to take your .au3 script and compile it into a standalone executable" , ok, @Compiled = .exe !. Nope. 
"@Compiled" should have been named "@Tokenized" but then again, what is a token and where is the game I put the token in ? :think:

Linguistics, right ?. In any case what is useful to know is: is it an .exe or not. Hence this ( I guess somewhat silly ) posting of a function for that.
( I wake up to this now that I'm starting to look at distributing .a3x instead of .exe ) 

MsgBox(262144, @ScriptName, "IsSelfExecutable() = " & IsSelfExecutable() & ' - Tokenized: ' & @extended, 10)
Func IsSelfExecutable()
    Return SetError(0, @Compiled, Int(@AutoItExe = @ScriptFullPath))
EndFunc
Edited by argumentum
better code

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

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