Code: Select all
#include "windows.bi"
dim as bool application_unlocked
sub demo
print "THIS HERE IS THE DEMO"
end sub
sub fullversion
print "THIS HERE IS THE FULLVERSION"
end sub
function gen_serial_code (s as string) as ulongint
dim as ulongint a
for i as integer = 0 to len(s) -1
select case s[i]
case ASC("A")
a += 1000
case ASC("B")
a +=4321
case ASC("C")
a +=659483
case ASC("D")
a +=543893
case ASC("E")
a +=243294
case ASC("F")
a +=954930
case ASC("G")
a +=432932
case ASC("H")
a*=2
case ASC("1")
a*=3
case ASC("2")
a*=43
case ASC("3")
a*=123
case else
a = 0
end select
next
print a
return a
end function
DIM AS STRING SERIAL
INPUT "ENTER YOUR SERIAL :";SERIAL ' ONE OF THEM IS DDCDE221AGH
if gen_serial_code (SERIAL) = 28118122728 then
print "SERIAL CORRECT"
application_unlocked = true
else
print "SERIAL BAD"
end if
color 15
if application_unlocked then
fullversion
else
demo
end if
color 7
print "PRESS A KEY TO EXIT"
getkey