Jump to content

Recommended Posts

Posted

Is there a way to replace the scroll wheel with the keyboard?

 

I was thinking of using the keypad. Can this be written as transpearent?

 

defun 8 pan up

defun 4 pan left

defun 2 pan down

defun 6 pan right

defun 9 zoom out

defun 3 zoom in

defun 5 zoom center

 

This would be a great help to me. I think it would be a great help to MANY people. just check out the thread about mouse pain. It is a very popular thread.

 

panning, zooming and wrist movement that can be replaced with a keypad will greatly reduce mouse pain

Posted

Here are some modifiers I added for CTRL-ARROW_KEYS to pan around the drawing. I added this to our menu files. You can go from there for your own keys.

 


***ACCELERATORS
[CONTROL+"UP"]'-pan ^P(trans (list 0 (* -0.25 (getvar "viewsize"))) 0 1) ;^P
[CONTROL+"DOWN"]'-pan ^P(trans (list 0 (* 0.25 (getvar "viewsize"))) 0 1) ;^P
[CONTROL+"LEFT"]'-pan ^P(trans (list (* 0.25 (getvar "viewsize")) 0) 0 1) ;^P
[CONTROL+"RIGHT"]'-pan ^P(trans (list (* -0.25 (getvar "viewsize")) 0) 0 1) ;^P

Posted
Here are some modifiers I added for CTRL-ARROW_KEYS to pan around the drawing. I added this to our menu files. You can go from there for your own keys.

 


***ACCELERATORS
[CONTROL+"UP"]'-pan ^P(trans (list 0 (* -0.25 (getvar "viewsize"))) 0 1) ;^P
[CONTROL+"DOWN"]'-pan ^P(trans (list 0 (* 0.25 (getvar "viewsize"))) 0 1) ;^P
[CONTROL+"LEFT"]'-pan ^P(trans (list (* 0.25 (getvar "viewsize")) 0) 0 1) ;^P
[CONTROL+"RIGHT"]'-pan ^P(trans (list (* -0.25 (getvar "viewsize")) 0) 0 1) ;^P

 

 

Can this be done without hitting control?

 

I tried changing [CONTROL+"UP"]'

to

["UP"]'

didn't work

Posted

Thanks foe your help!

 

I'm almost there. I'm using accelerators on the numberpad

 

However, I'm having trouble with zoom center

 

below sort of works but it isn't practicle

 

["NUMPAD5"]'zoom;c;/;;;

 

How do I write it without the pause for user input?

Posted

You would probably have to tell it where center is (calc first), and then magnification/height.

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