Jump to content

Recommended Posts

Posted

I want to make a password for my lisp (VLX) when i appload this lisp

Help me pleaseeeeeeeee :cry:

Posted

I hope This codes will helps you

(defun c:Test(/ password loop ans)
     (setq password 12345)
     (setq loop t)
     (while loop
    (setq ans (getint "\nEnter Password to unlock:"))
    (if (/= ans password)
	(princ "\nInvalid Password try again.")
        (progn
	      (princ "\nDone.");here you can add your main function
	      (setq loop nil)
	)
    )
     )
(princ))

 

 

Also if You want to Convert Your Lisp file into .fas

Check This Thread

http://www.cadtutor.net/forum/showthread.php?83695-Change-.lsp-to-.fas

Posted
I hope This codes will helps you

(defun c:Test(/ password loop ans)
     (setq password 12345)
     (setq loop t)
     (while loop
    (setq ans (getint "\nEnter Password to unlock:"))
    (if (/= ans password)
	(princ "\nInvalid Password try again.")
        (progn
	      (princ "\nDone.");here you can add your main function
	      (setq loop nil)
	)
    )
     )
(princ))

 

 

Also if You want to Convert Your Lisp file into .fas

Check This Thread

http://www.cadtutor.net/forum/showthread.php?83695-Change-.lsp-to-.fas

 

Thanks for helpfull.but i need to get password when i appload a lisp file

Posted
but i need to get password when i appload a lisp file

 

I Don't Understand What You Are Trying to say ..

Posted
Thanks for helpfull.but i need to get password when i appload a lisp file

 

This?

 

(defun c:Test()
 (if (eq password "BondJamesBond")
   (princ "\nPassword Verified")
   (princ "\nInvalid Password")
   )
(princ))

(setq password (getstring  "\nEnter Passwword for Test routine "))

Posted
This?

 

(defun c:Test()
 (if (eq password "BondJamesBond")
   (princ "\nPassword Verified")
   (princ "\nInvalid Password")
   )
(princ))

(setq password (getstring  "\nEnter Passwword for Test routine "))

Thanks for your feedback but my issue is to put a password in a lsp file.when i load a lisp file to a drawing. Password will be required once. if it's right password.i can use all the functions in lsp file. Thanks again

Posted

Save the code i posted as "test.lsp" then try and appload the file bienda.

Posted

Thanks for feedback

If i have 3 lisp file in 1 vlx

How to set password when i use them?

Posted (edited)

You can lock your code up in lots of ways Serial number, password, hard disk id, hidden file, lots of stuff but you have to add the check password code to every program if its already a vlx then you probably can not do it.

 

 

For any one interested from CMD copy lockfile+lispfile newlispfile just make a bat file with all files in it, this adds your locking to all your lisps.

Edited by BIGAL

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...