IronFine Posted September 9 Share Posted September 9 Hi, I am aware that it is not possible to directly version information to an encoded (a3x) script. Appending the desired file version via HexEditor does the job and the script is running (even with the version number appended). In the beginning and end of the encoded script I can see "AU3!EA06" which I guess is some kind of internal marking for the start and end of the encoded script. Is it safe to assume, that this kind of appendix at the end of the file is okay? Link to comment Share on other sites More sharing options...
Solution argumentum Posted September 10 Solution Share Posted September 10 (edited) Yes, no problem. It runs within the delimiters you found. Append at will. Edited September 10 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted September 10 Developers Share Posted September 10 Why not simply adding a msgbox with the version info to the script and display it when a specific parameter is used? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Musashi Posted September 10 Share Posted September 10 You can pass command line parameters to .a3x / .au3 files as well (similar to .exe). Define a constant for the respective version number in the script. If the script is started e.g. with /V (freely definable), you can have the version number returned. This seems to be easier than using a HEX editor. ioa747 and CYCho 2 "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
IronFine Posted September 10 Author Share Posted September 10 5 hours ago, Jos said: Why not simply adding a msgbox with the version info to the script and display it when a specific parameter is used? Idea behind it is to collect version installed on various computers. It will be either Appending the data or using your suggestions. 5 hours ago, Musashi said: You can pass command line parameters to .a3x / .au3 files as well (similar to .exe). Define a constant for the respective version number in the script. If the script is started e.g. with /V (freely definable), you can have the version number returned. This seems to be easier than using a HEX editor. I understand that. Hex editor was only to get a proof of concept. This would be automated during compilation. Link to comment Share on other sites More sharing options...
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