Jump to content
Sign in to follow this  

Autoit Compling a .a3x

Recommended Posts


I want to be able to generate a random code (Random function) then write it into a .a3x with a password to be able to access it. But .a3x needs to be compiled.


Func read ($password)
If $password = "Password" Then
$code = "Code"
Return $code
MsgBox ( 1, "Incorrect", "Incorrect Password" )

And write and compile it into a .a3x along with the code.

Only idea i could think of otherwise I need to make a way to have a public\full version and i have to encrypt a code and send them a file.

Edited by Chip

Share this post

Link to post
Share on other sites

a3x is a "compiled" script without the script engine.

You can run the script from another autoit program with this line:

$res = RunWait(@AutoItExe &' /AutoIt3ExecuteScript "' & $scriptpathname & '"'

But @w0uter is quite right using a hash or encryption sceeme is more efficient and safe.

EDIT: It's typo day today.

Edited by Uten

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.