Author Topic: AutoLISP trial code  (Read 3161 times)

0 Members and 1 Guest are viewing this topic.

crowellsr

  • Guest
AutoLISP trial code
« on: August 02, 2007, 07:30:33 PM »
I have modified Jeff_M's trial code found at http://www.theswamp.org/index.php?topic=10844.0 to try to individualize an install key for each different computer it is run on. It also allows the user to either input a serial if they have purchased the product or run as a trial if they have not. I was wondering if I could get some of you AutoLISP experts to look at the code to see if you see any problems because I am sure I have some in there somewhere.

Thanks

Steve

I have updated the trial.lsp file on this post!
« Last Edit: August 02, 2007, 09:19:25 PM by crowellsr »

Jeff_M

  • King Gator
  • Posts: 4099
  • C3D user & customizer
Re: AutoLISP trial code
« Reply #1 on: August 02, 2007, 08:26:27 PM »
Hi Steve,
The first issue I see is that you haven't used your own Registry key. The "JMM-UTILS" is just something I use for my own Utilities.......my initials are JMM. :-)

I think I'd add code to account for a mis-typed Serial # input.

Also, I don't see any code to check if the user has already validated a purchased version.

How are you planning to issue the Serial numbers?

crowellsr

  • Guest
Re: AutoLISP trial code
« Reply #2 on: August 02, 2007, 08:32:31 PM »
I haven't got into changing the registry key yet, sorry for using yours still. I am working on adding a check to see if the program has already been purchased. I believe if the the serial number is improperly typed it will act as a trial and still allow you to run it if it is not expired. If it is expired you will have to reload the program.

I am creating a "keygen" that will generate a serial based on the authorization code which I will be having the program display and then I can email the serial after receiving payment.

crowellsr

  • Guest
Re: AutoLISP trial code
« Reply #3 on: August 02, 2007, 09:18:07 PM »
I have done a little tweaking to check if there has already been a serial number inputted. THe program no longer runs it gives me: Command: ; error: bad argument value: unsupported registry value: "auth"

I am not very good with AutoLISP and the registry so I definately need some help here.

Steve

Jeff_M

  • King Gator
  • Posts: 4099
  • C3D user & customizer
Re: AutoLISP trial code
« Reply #4 on: August 03, 2007, 04:32:26 PM »
That error is due to you passing a Real number. Registry entries cannot be Floating Point....they must be strings or integers.

I think you need a check to verify the Serial #/Activation code (whatever you want to call it) is a valid one.

Here's how I'd look at this:

Check for the existence of an Auth Registry value, if it exists run the program.
Ask for Auth value or Trial mode,
 verify entered value is a valid value,
  if so, write it to the Auth Registry, run the program
  if not, ask again, repeat
  after a 3rd attempt, send to the Trial code
For trial, check for Date Registry value,
  if not there, set it, run program advising of time left
  if there, report time left, run program
  if time expired report it and exit

You are close to these steps, but it seems as thought there are some overlaps and undershoots....and, of course, I could be all wet too......

Oh, and I'd put all of it within the command call so it isn't run when loaded, only when used, with a check whether it's already been verified/dated in this session via a global variable.
« Last Edit: August 03, 2007, 04:35:04 PM by Jeff_M »

LE

  • Guest
Re: AutoLISP trial code
« Reply #5 on: August 03, 2007, 06:45:49 PM »
I am not very good with AutoLISP and the registry so I definately need some help here.
^^
Is the source code worth the effort to protect it?


LE

  • Guest
Re: AutoLISP trial code
« Reply #6 on: August 03, 2007, 06:57:11 PM »
I was going to give you a url link for activelock an open source project, but appears that they are making changes and took out a lot of the open source code (interesting of why they remove a lot of stuff) - and left only the VB.NET .... here is...

www.activelocksoftware.com

and if one of these days I end up adapting my CADLockSystem C++ open-source project that I uploaded here:

http://www.theswamp.org/index.php?topic=17899.0

It can work for visual lisp applications.... some day.... :)

crowellsr

  • Guest
Re: AutoLISP trial code
« Reply #7 on: August 03, 2007, 08:40:57 PM »
When I get this done it will be available to anyone who would like to use it, and maybe even improve it.

Steve

crowellsr

  • Guest
Re: AutoLISP trial code
« Reply #8 on: August 11, 2007, 07:36:42 PM »
Here is the lastest code that I have for a trial of one of my programs. It still does not run the program whether the serial is right or not. Hoping I could get some help.