AllExperts > AutoCAD 
Search      
AutoCAD
Volunteer
Answers to thousands of questions
 Home · More AutoCAD Questions · Answer Library  · Encyclopedia ·
More AutoCAD Answers
Question Library

Ask a question about AutoCAD
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Scott Cook
Expertise
I`ve been using AutoCAD since 1987 and programming AutoLISP nearly as long. I can answer questions about programming AutoCAD (except ARX) and production enhancement techniques. I cannot answer questions about AutoCAD crashes or DWG corruption. AutoCAD PROGRAMMING (menus, lisp) related questions only!

Experience
Since 1987. Author of Plot2000 software for for AutoCAD, http://www.plot2000.com. PROGRAMMING QUESTIONS ONLY PLEASE. Questions that are NOT related to programming or AutoCAD customization (menus and lisp only please) are outside the scope of my volunteer services and will NOT BE ANSWERED.
 
   

You are here:  Experts > Computing/Technology > Computer-Aided Design > AutoCAD > Programming Zoom Commands for a 5 Button Mouse

AutoCAD - Programming Zoom Commands for a 5 Button Mouse


Expert: Scott Cook - 4/12/2004

Question
I recently got a new computer with XP on it.  I am having trouble reprogramming my mouse to do zoom - extents, previous and window (window being the wheel button and the other two being the other side buttons.)  I have the Intellimouse Explore (Optical) and am running 2000i.

When I did this a year or so back I programmed a lisp with the following:

(defun c:ZP ()
  (command "ZOOM" "P")
)

(defun c:ZE ()
  (command "ZOOM" "E")
)


(defun c:ZW ()
  (command "ZOOM" "W" pause)
)

Then changed something in the acad.mns file (this I can't quite figure out what I did either) to have CTRL - Q, R, L associated with those commands and then assigned each button to do CRTL - Q, R, L ---  now switching to XP and updating my mouse software for XP (I was on 2000, so I don't really know why I had to switch) I don't have the option to assign custom key strokes to my mouse buttons or even the ability to have program specific button settings for the mouse.  They are currently set at autoscroll, back and forward - but I don't know the keystrokes (if any) associated with these windows commands.

So my question is, what is the easiest way to setup the three other buttons (wheel click, big and little thumb buttons) to zoom - E, P, and W?

Thanks in advance

Answer
find the ***buttons section in your acad.mns file and experiment with it to figure out which line is responsible for which buttons. use notepad to edit it.
everything needs to be on one line. Each line is responsible for one button. The pick button doesn't count, as I recall. There might be sub-sections to the buttons section like **aux1 or something like that, you might have to try putting them in there till you start seeing something happen.
You have to exit and restart autocad to get the menu to recompile after saving it.
in the menu, you will just put the command, like ZP, ZE, or ZW. Buttons will supply a pick of the first point if desired, if you want that you can do something like this:
ZW;the backslash indicates a pick point. The semicolon is an enter.

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.