McGod Posted June 25, 2006 Posted June 25, 2006 (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 June 25, 2006 by Chip [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
w0uter Posted June 25, 2006 Posted June 25, 2006 you cant #include a3x instead you could use an hash. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Uten Posted June 26, 2006 Posted June 26, 2006 (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 June 26, 2006 by Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling
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