Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programming Mouse Right Click 1

Status
Not open for further replies.

assyrian47

Technical User
Mar 17, 2002
7
US
Is it possible to add/delete commands from the pop-up menu when you right-click the mouse? I want to add MOVE to the menu.
 
Yes, you could add a line to the POP0 portion ot the acad.mns file, near the top. Use Notepad to edit this file. The portion you want to edit beginas follows:
***POP0
**SNAP
[&Object Snap Cursor Menu]
ID_Tracking [Temporary trac&k point]_tt
ID_From [&From]_from
ID_MnPointFi [->Poin&t Filters]
etc...etc..

Add a line that look like:

ID_Move [Move]^C^C_Move
 
Since the .mns is generated by AutoCAD, wouldn't it be better to put this in the acad.mnu file? You would want to put this in the ***POP501 portion because it is the default portion and nothing has to be selected for it to work.
Code:
***POP501
**CMDEFAULT
             [Context menu for default mode]

Flores
 
Thanks for the information. I have tried both suggestions and neither one works. I am using ACAD 2004 and have modified the acad.mnu as suggested by newbiewonkinobie. I made the changes to the .mnu file in the ACAD folder as well as my user file located in the Documents and Settings folder (using WIN2000). Modifications are made with ACAD closed. I even copied an entry for an existing setting expecting it would be duplicated on the right mouse click. It was not. Could it be that I have a corrupted acad.mnu file?

Thanks for all the support.
 
newbiewonkinobie is correct about changing the POP501 for the right click menu. The Pop0 is the shift+right click. If you edit acad.mns, the menu change will be effective next time you start AutoCAD. If you edit the .mnu file, you will need to reload the acad.mnu file in AutoCAd using the MENU command. Doing this would cause you to lose any customizations you may have made to the menu, and you'd have to reload Express Tools menu if you have that.
 
I got it to work. I was modifying the wrong file. Thanks for all the help and direction. I now can make the mouse actually make my work go faster.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top