PDA

View Full Version : Help to fix this code to Application Expire.


nals
03-23-2007, 07:28 AM
I found this code from here somewhere here to application Expire: looks like this is for ver 4.0 , can someone please correct this code to work for version 6 please. :huh

%NumRuns% = "0"
%NumRuns% = Registry.GetValueData ("HKEY_CURRENT_USER\HiddenKey", "NumberOfRuns")
IF (%NumRuns% = 0)
%NumRuns% = "1"
Registry.SetValue ("HKEY_CURRENT_USER\HiddenKey", "NumberOfRuns", "%NumRuns%")
END IF
IF (%NumRuns% >= 30)
%Result% = Dialog.MessageBox ("Expired", "This application has expired.", Ok, Stop)
Application.Exit
ELSE
%NumRuns% = Evaluate (%NumRuns% + 1)
Registry.SetValue ("HKEY_CURRENT_USER\HiddenKey", "NumberOfRuns", "%NumRuns%")
END IF

mz241508
03-23-2007, 07:46 AM
Have a look at this thread > (http://www.indigorose.com/forums/showthread.php?t=15061&highlight=days)

nals
03-23-2007, 08:13 AM
mz241508 That was great ! Thanks a lot :yes

mz241508
03-23-2007, 09:28 AM
Your welcomed! :cool