| Article Index |
|---|
| Copy protecting MaxScripts - Making the license file |
| making the ui |
| license routine |
| Final script |
| All Pages |
Page 4 of 4
utility Utility_hardware_lock "Create HardwareLock" width:160 height:88
(
button btn7 "Create hardware lock" pos:[16,56] width:136 height:15
GroupBox grp7 "Create Hardware lock key" pos:[8,8] width:152 height:72
editText edt1 "" pos:[16,32] width:136 height:16
on btn7 pressed do
(
makedir "c:\locktemp"
f = createFile "c:\locktemp\lock.tmp"
format edt1.text to:f
if edt1.text == "" then MessageBox "Please fill in HwLockID" title:"Error"
else
close f
encryptFile "c:\locktemp\lock.tmp" "c:\locktemp\lock.dat" 5476557
deleteFile "c:\locktemp\lock.tmp"
shellLaunch "Explorer.exe" "c:\locktemp"
)
)





