Sign in to follow this  
Followers 0
McGod

Autoit Compling a .a3x

3 posts in this topic

#1 ·  Posted (edited)

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.

Snippet:

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

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



#3 ·  Posted (edited)

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  
Followers 0