| Dettagli del download |
|
CheckHDSerialNumber is an example project designed to demonstrate how to easily protect a project from being launched on an unauthorized computer. After the protection is activated, the project is bound to the hard disk serial number and cannot be run on another computer. Two tags named HDSerialNumber and CheckEnabled are defined through the Device Manager. The first one contains the serial number, the other one is used to activate/deactivate the protection. Three scripts are defined through the Script Manager. The UpdateHDSerialNumber script is intended for updating the disk serial number in the HDSerialNumber tag. The ExitRuntimeModule script is used to terminate the project. The ProjectRun script is used to compare the current disk serial number to the value of the HDSerialNumber tag. If the numbers do not match, the Dlg_ProjectCannotRun dialog window is displayed. After the dialog is confirmed by clicking the OK button, the project is terminated. All instructions listed below are also shown in the visualization window. Disk check activation instructions: 1. Start the runtime software. 2. Save the current hard disk serial number to the HDSerialNumber tag (click on the Save HD serial number button). 3. Terminate the runtime software. 4. Bring up the Device Manager. On the Advanced page of the CheckEnabled tag's properties, activate the Save last value option. 5. Start the runtime software. 6. Start checking the hard disk serial number (click on the Check serial number check box). 7. Terminate the runtime software. Disk check testing instructions: 1. Start the runtime software. 2. Change the saved value of the HDSerialNumber tag (using the Display component). 3. Terminate the runtime software. 4. Start the runtime software. Disk check cancel instructions: 1. Bring up the Device Manager. On the Advanced page of the CheckEnabled tag's properties, deactivate the Save last value option. |
|
|||||||||||||||||||||||||||||||||

Gli esempi presenti su questo sito sono stati liberamente inviati dagli utenti di automationforum.it, è stato espressamente specificato loro di inviare solo esempi FREE. Automationforum.it non si ritiene responsabile dell'eventuale presenza di esempi rilasciati sotto licenza commerciale, Automationforum.it invita tutti coloro che individuano esempi rilasciati sotto licenza commerciale presenti in questa raccolta a segnalarlo dall'apposito