| Article Index |
|---|
| Copy protecting MaxScripts - Getting hardware lock info |
| How to.. |
| Visual maxscript Editor |
| Gathering the info |
| writing to text file and email |
| Final Code |
| All Pages |
Page 2 of 6
So here it goes:
Creating Copy protection for 3dsmax scripts.
Here's what we'll do:
- Make a GUI for gathering computer\user info to generate the license file with.
- Creating a gui for a "license generator" to make it easy to make licenses.
- Sample application that uses the license file.
1) Making the GUI for info gathering:
Start the maxscript editor, start with a blank file.
enter the following code:
utility Utility_hardware_lock "Get Hardware Lock ID" width:160 height:472
(
)
This will tell the script to make an utility that has the name "Get Hardware Lock ID",
you will find this script in the utilities\maxscript panel at runtime:

If you compile and run the script at this time, It'll end up like this:






