Dialog - User Name & Serial Number

Dialog - User Name & Serial Number

Shows a dialog for entering the user name and the serial key. It allows the user to enter the 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 the corresponding number of input fields and it will be possible to enter only 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.
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 serial variable. You can check the validity of the serial number yourself. To do it, define the serialcmdproc function in the Source code command. 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 = "\<C:\TEMP\myserials.txt>"

   arrstr keys
   serials.split( keys, 0xA, $SPLIT_NOSYS )

   foreach cur, keys
   {
      if serial %== cur : return 1
   }
   return 0
}