$superpass = 'qwerty'
While 1
$i = InputBox ('Super script', 'Enter password', '', '*',200 , 120)
If @error OR $i = "" Then Exit
If StringCompare($i, $superpass) = 0 Then
MsgBox(0, '', 'ta da... password is right')
ExitLoop
Else
MsgBox(0, '', 'Sorry pall, wrong password. Try again')
EndIf
WEnd
$var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\", "TestKey")
If $var = "" Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey", "REG_SZ", "0")
$1 = Abs ($var+1)
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey", "REG_SZ", $1)
$var1 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\", "TestKey")
If $var1 > "3" Then MsgBox(4096, "Сообщение", 'Лимит по количеству запусков превышен')
If $var1 > "3" Then Exit
; код программы