Dialog - User Name & Serial Number
Shows a dialog box for entering the user name and the serial key. It allows the user to enter his name and organization and the serial number in the format you specify.
Description, Header Text, Header Description, Text, Logo Image, Buttons, If Condition
These parameters are explained in Common dialog parameters.
Format of Serial Number
If you leave this field blank, there will be only one key input field. You can specify the format as XXX-XXXXX-XXX. In this case, there will be a corresponding number of input fields and it will only be possible to enter the specified number of characters in each field. It is possible to use up to six fields.
XXXX-XXXX XXX-XXXXXXX-XXXX XXXX-XXXX-XXXX-XXXX
Additional Settings
You can define any variables here or specify Variables of dialogs.
Unext - specify 1, if you want to allow users to press Next button without entering the serial number.
Ulower - assign 1 if you want the serial number to contain letters not only in upper case.
Serialpsw - you can hide input characters in the serial number. To do this, specify the character that will be displayed instead of the characters the user enters. For example, '*'.
Userialonly - specify 1 if you don't want to show User name and Organization fields.
Uuseronly - specify 1 if you don't want to show serial number fields.
The entered serial number will be saved to the variable serial. You can check the validity of the serial number yourself. To do so, define the function serialcmdproc in the command Source code. The function must have one string parameter, where the entered registration key will be passed and you must return 0 or 1.
func uint serialcmdproc( str serial )
{
if serial %== "123Q-45D7G-PLE3" : return 1
return 0
}
--- another sample ------------------
func uint serialcmdproc( str serial )
{
str serials = "\"
arrstr keys
serials.split( keys, 0xA, $SPLIT_NOSYS )
foreach cur, keys
{
if serial %== cur : return 1
}
return 0
}
Comment
You can add a comment for this setting here.