Jump to content

Lastprompt system variable


svorgodne

Recommended Posts

Does anybody know what's the use of the "lastprompt" system variable?

 

Or how to to create a symbol out of the last prompt without bypassing the lastprompt input as it will be really the lastprompt input?

 

Or how to get the "lastprompt" - 1 to get the previous command line before the lastprompt was turned into an input?

 

Thanks in advance

Link to comment
Share on other sites

that is precisely the point... if you type "lastprompt" at the command line, you get back...

 

Command: lastprompt

 

LASTPROMPT = "Command: lastprompt" (read only)

 

because the last input was "lastprompt"

Link to comment
Share on other sites

You're not being very clear in your first post.

 

Why are you trying to get the value of LASTPROMPT, if all you have to do is look at the command line or hit F2?

Link to comment
Share on other sites

I try to make a variable out of the last string on the command line to make it independent from any place from where it is located. It is to install one program I did but without to make it exclusive for every user since I have different clients who may use this program, so what I am looking for is to make a lisp that can read its own location to make it a variable so the rest of the process can be automatically done by the program since "its own location" was already turned into a variable.

 

It is a little complicated to explain, that´s the reason I only asked if it was possible to read the last line, because when u drag and drop an autolisp file into the editor, it loads itself and it produces an input in the command line.

 

From there I would like to make a variable that I can use to install the rest of the program.

 

Thanks anyway

 

.-)

Link to comment
Share on other sites

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...