Using a PGP Shortcut to cancel current command?

Using a PGP Shortcut to cancel current command?

Anonymous
Not applicable
1,715 Views
6 Replies
Message 1 of 7

Using a PGP Shortcut to cancel current command?

Anonymous
Not applicable

Rather than use the ESC button to deselect or cancel a command, is there a way to create a PGP shortcut that will do the same thing?  the reason is recently I have the idea of using a 10-key pad and type out numbers for the commands that I use on a regular basis.

 

For example in ACAD.pgp I added these:

31,           *COPY
32,           *MOVE
33,           *SCALE
34,           *ROTATE
35,           *MIRROR
36,           *ARRAY

37,            **Cancel*  (this won't work.  Do you know what will?)

0 Likes
Accepted solutions (4)
1,716 Views
6 Replies
Replies (6)
Message 2 of 7

pendean
Community Legend
Community Legend
Accepted solution
Wait, you want to type out 37 and hit <enter> rather that hit ESC button once?

>>>...37, **Cancel* (this won't work. Do you know what will?)...<<<
*cancel* is not a command, it just a response to tapping the ESC button.
0 Likes
Message 3 of 7

ВeekeeCZ
Consultant
Consultant
Accepted solution

Is the use of mouse is allowed? 

 

There is a button for that.

Z9E3zK5E_0-1614971366171.png

 

37 --- How would AutoCAD know that you want process CANCEL and not just set a number?

 

BUT, theoretically CANCEL can be assigned to 37 by LISP.

 

(defun c:37 () (command) (princ))

If used in the middle of command you need to type that with apostrophe '37

0 Likes
Message 4 of 7

Kent1Cooper
Consultant
Consultant

@ВeekeeCZ wrote:

....

(defun c:37 () (command) (princ))

If used in the middle of command you need to type that with apostrophe '37


I don't think so -- I didn't looked it up to find where it says so, but I believe "transparent" command use with the apostrophe prefix is only possible with command definitions that don't include any (command) function(s) in them.

Kent Cooper, AIA
0 Likes
Message 5 of 7

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

...

For example in ACAD.pgp ....

37,            **Cancel*  (this won't work.  ...)


That's because that file is for command aliases.  Cancel is not a command name.

Kent Cooper, AIA
0 Likes
Message 6 of 7

Anonymous
Not applicable
Accepted solution

37 was an example.  I would probably use a single digit number in the end.  The idea is using a 10 key pad for my left hand (see picture below) and use it for the commands while my right hand controls the mouse.  However after I posted this message I found that all I have to do is just double click the right mouse button twice and it will cancel the action or selection of objects on AutoCAD.  

0 Likes
Message 7 of 7

pendean
Community Legend
Community Legend
Accepted solution
Do you just do numerical entries in AutoCAD all day long, and rarely touch the keyboard? If not, why not just move it to sit next you your keyboard and reach for the ESC button? Basically this layout if you are not in the market for another keyboard solution https://smile.amazon.com/DURAGADGET-Left-Handed-Numeric-Keyboard-Laptops/dp/B08217K9YZ/ref=sr_1_6?dc...

OR

You can always program one of your mouse-keys to be ESC if you use one with a dedicated customizable driver, perhaps even a new mouse with more buttons https://smile.amazon.com/Left-Handed-Jelly-Comb-Ergonomic-MV09E/dp/B07Q7G5ML6/ref=pd_bxgy_2/136-5892...

HTH