Author Topic: Begin command without pressing ENTER or SPACE BAR  (Read 7816 times)

0 Members and 1 Guest are viewing this topic.

jonesy

  • SuperMod
  • Seagull
  • Posts: 15568
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #15 on: April 23, 2008, 01:25:25 PM »
Is there any way to customise the right click? Instead of having a list of recent commands, to have a list of favorite commands instead... would that be doable?
Thanks for explaining the word "many" to me, it means a lot.

M-dub

  • Guest
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #16 on: April 23, 2008, 01:26:25 PM »
Another link for gestures...


Is there any way to customise the right click? Instead of having a list of recent commands, to have a list of favorite commands instead... would that be doable?

Sure it would!

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #17 on: April 23, 2008, 01:26:59 PM »
Is there any way to customise the right click? Instead of having a list of recent commands, to have a list of favorite commands instead... would that be doable?

That is a possibiliy
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

quamper

  • Guest
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #18 on: April 23, 2008, 01:27:30 PM »
In the CUI you can bind/rebind shortcut keys under keyboard shortcuts. It only works for the Function keys + modified keys (like shift+letter) etc..
Thats how you can change F1 to escape instead of launching help for instance.

quamper

  • Guest
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #19 on: April 23, 2008, 01:29:51 PM »
Is there any way to customise the right click? Instead of having a list of recent commands, to have a list of favorite commands instead... would that be doable?

Yeah my right click is heavily customized with just the stuff I use all the time plus lots of custom commands. In the CUI thats under Shortcut Menus "Default Menu" for the standard no command active right-click..


Guest

  • Guest
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #20 on: April 23, 2008, 01:31:20 PM »
Is there any way to customise the right click? Instead of having a list of recent commands, to have a list of favorite commands instead... would that be doable?

"That's too many clicks" is the response that I got.  Basically what they want to do is 1) click on an object 2) press a key and have AutoCAD know what type of object it is, what layer it is on, and then begin that object's specific command.  Kinda like Architecture's and MEP's ADD SELECTED command.

I've already written my own ADD SELECTED command and made it available via selecting an object and right-clicking, but "that's too many clicks".  I'm thinking for this situation, I can autoload the add selected program, then they can map whateve key(s) they want using the PGP file.  So what if they have to press ENTER.  Seriously, how long does that really take?  If we add up however many times they do this, multiplied by the number of days they do this, we're probably only talking about a matter of a few minutes total all year that could be saved.

Pressing the SPACE BAR to activate a command is like second-nature to me.  Moving the mouse to a toolbar/palette and finding the button I want to click is more time consuming than having to press the space bar - but that's just me.

M-dub

  • Guest
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #21 on: April 23, 2008, 01:34:10 PM »
The amount of time they'd save over the course of a day would be lost the first time they sneeze.

daron

  • Guest
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #22 on: April 23, 2008, 02:03:26 PM »
Not removing enter but (grread) has always been a good function for not having to select enter. This is nothing special but it shows possibilities within a procedure
Code: [Select]
(defun c:noenter (/ key)
   (setq key (grread nil))
   (cond
      ((vl-position (cadr key) '(76 108));L
       (command "_.line")
       )
      ((vl-position (cadr key) '(80 112));P
       (command "_.pline")
      )
   (princ)
   )

Chuck Gabriel

  • Guest
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #23 on: April 23, 2008, 02:10:04 PM »
... Basically what they want to do is 1) click on an object 2) press a key and have AutoCAD know what type of object it is, what layer it is on, and then begin that object's specific command.  Kinda like Architecture's and MEP's ADD SELECTED command.

This code could be modified to do what you want.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #24 on: April 23, 2008, 02:24:40 PM »
In the CUI you can bind/rebind shortcut keys under keyboard shortcuts. It only works for the Function keys + modified keys (like shift+letter) etc..
Thats how you can change F1 to escape instead of launching help for instance.

you can also set it to be whatever you want. i'm still a fan of the extended change properties from r14 express tools, i modified it a little to work properly in newer versions and i have it set to run with F1.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #25 on: April 23, 2008, 02:26:29 PM »
Is there any way to customise the right click? Instead of having a list of recent commands, to have a list of favorite commands instead... would that be doable?

in addition to the right click, you can easily modify the ctrl or shift + right click (default is the osnap popup) and add all kinds of stuff there tool.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

JohnK

  • Administrator
  • Seagull
  • Posts: 10660
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #26 on: April 23, 2008, 03:40:54 PM »
Code: [Select]
( (lambda ( / )
    ;; I think your nuts for wanting this...
    (setq input (grread))
    (if (eq (cadr input) 108)
           (alert "I know you pressed the `L' key"))) )
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

qwrtz

  • Guest
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #27 on: April 23, 2008, 04:50:16 PM »
VectorWorks and SketchUp both work that way. You just press a key to select a tool, and any clicks after that are used by that tool, to draw lines, or offset them, or whatever, until you pick a new tool by pressing another key. It's great once you get used to it (for the first couple of weeks you keep hitting the space bar anyway). I don't know if it saves time, but it's a more relaxed feel, kind of a luxury feel. But you're limited to the number of keys you have. You can't use two-letter aliases.

It could be done in AutoCad by using a macro utility like Keyboard Express. You would tell KE that you want the L key to mean LINE<enter> in AutoCad. But then whatever keys you assigned that way would always send those characters to AutoCad, so you wouldn't be able to use them to type text. You'd have to do something strange like type text in Notepad and paste it in. Or you could buy an add-on keypad with a whole bunch of function keys and have each one send a command and an Enter code. But then you have excess baggage.

There's another feature of SketchUp and VectorWorks that also contributes to that un-frantic feel, and which is easy to implement with Lisp:  they don't de-select after a command, so you avoid all those P's and L's. Any command that creates a new entity leaves it selected, and any command that edits entities leaves whatever was selected still selected. And in combination with that, they're set up to normally de-select all when you select something new, unless you hold down the shift key to add to the selection set. But those programs work on surfaces and groups and other containers, so it's easy to select whatever you want with a single window or crossing.

M-dub

  • Guest
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #28 on: April 23, 2008, 05:09:03 PM »
I just had a funny thought.

You know how noisy computers are on tv, with all of their "beeps" and "bloops" and other digital 'sounds'?  Every time someone's doing ANYTHING on a computer, you can hear a beep every time they touch the screen or press a key.  (If you don't know what I'm talking about, watch CSI sometime...)


... never mind... don't know where that came from...

CADaver

  • Guest
Re: Begin command without pressing ENTER or SPACE BAR
« Reply #29 on: April 23, 2008, 05:18:35 PM »
L would be fine for line, but what would you do with LO or "layers off".  You'd need a delay of some kind to get to the "O", wouldn't you?  So there goes the time savings.