Stigatle.net

Site sponsored by Nettkroken.no

  • Increase font size
  • Default font size
  • Decrease font size
Home Maxscript Copy protecting MaxScripts - Making the license file - Final script
Copy protecting MaxScripts - Making the license file

Copy protecting MaxScripts - Making the license file - Final script

E-mail Print PDF
Article Index
Copy protecting MaxScripts - Making the license file
making the ui
license routine
Final script
All Pages

 


 

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"
    )
)



 

 



Last Updated on Tuesday, 30 December 2008 22:12