PDA

View Full Version : Ask for serial only once work around



dallasfreak
06-01-2001, 03:05 PM
after trying out serial for first time, realized you have to type in serial number each time. Here is a workaround that will ask for it only once:

*****all of these are located under project open tab*****
sampleapp is the name of your menu.
password is the serial number u wish to use

READ FROM REGISTRY
Name %serial%
default
Main Key HKEY_LOCAL_MACHINE
Sub Key software\sampleapp
Value name serial
True if exists <unchecked>
Boolean <none>

READ FROM REGISTRY
Name %serialinregistry%
default
Main Key HKEY_LOCAL_MACHINE
Sub Key software\sampleapp
Value name serial
True if exists <unchecked>
Boolean <none>

GET INFO
Name %serial%
Default
Caption Enter Data
Message Waht is the serial?
Browse Type None
Boolean %serialinregistry% <> "Not Equal" password

SHOW MESSSAGE
Caption Message
Message password wrong
Boolean %serialinregistry% <> "Not Equal" password; %serial% <> "Not Equal" password

CLOSE/EXIT
Boolean %serialinregistry% <> "Not Equal" password; %serial% <> "Not Equal" password

MODIFY REGISTRY
Action Set Value
Main Key HKEY_LOCAL_MACHINE
Sub Key software\sampleapp
Name serial
Type REG_SZ
Data %serial%
Action Overwrite
Seperator
Boolean %serialinregistry% <> "Not Equal" password

Hope this helps some ppl. If u need an am3 file to look at describing this, then email me
LATERZ

dallasfreak
06-01-2001, 03:13 PM
And of course if u want to use this, u would hide the serial location deep in the registry, os that other ppl can not hack this out.