TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Bob Q on December 30, 2011, 01:47:28 PM

Title: Custom pop up menus near the mouse pointer location?
Post by: Bob Q on December 30, 2011, 01:47:28 PM

I would like to learn how to make custom pop up menus that we can trigger with a single key stroke from a gaming type mouse, or a left hand "extra keyboard" gaming controller.  We would like the menus to pop up near the mouse location on the screen just like the middle mouse button menu does.

I would like to have several of these custom menus triggered by different mouse buttons i.e. one for different view points, one for some basic commands etc.

If anyone has any thoughts I would appreciate the advice.
Thanks!
Title: Re: Custom pop up menus near the mouse pointer location?
Post by: VovKa on December 30, 2011, 05:49:06 PM
this one will catch mouse buttons and simulate keystrokes ie. type commands into acad command line
http://www.highrez.co.uk/downloads/XMouseButtonControl.htm

this one will show a custom menu
http://www.theswamp.org/index.php?topic=32261.msg377746#msg377746
Title: Re: Custom pop up menus near the mouse pointer location?
Post by: Bob Q on December 30, 2011, 08:26:52 PM
Thanks, this is a really good method.
I am having some trouble with a gaming mouse, but I think once I get that figured out I will be off and running!

Thanks for all the help!
Title: Re: Custom pop up menus near the mouse pointer location?
Post by: alanjt on December 30, 2011, 08:37:24 PM
If you have DosLib (http://www.en.na.mcneel.com/doslib/whnjs.htm) installed, dos_popupmenu is really useful.


(http://www.en.na.mcneel.com/doslib/images/dos_popupmenu.jpg)
Title: Re: Custom pop up menus near the mouse pointer location?
Post by: Bob Q on December 30, 2011, 08:39:54 PM
I do in fact have Dos_lib installed,,, funny the solution was right under my nose :kewl:
Title: Re: Custom pop up menus near the mouse pointer location?
Post by: alanjt on December 30, 2011, 08:42:06 PM
I do in fact have Dos_lib installed,,, funny the solution was right under my nose :kewl:
I use the function quite a bit myself.  8-)
Title: Re: Custom pop up menus near the mouse pointer location?
Post by: Kerry on December 30, 2011, 09:08:11 PM

If you're testing Jaws
http://wiki.mcneel.com/developer/doslib
Title: Re: Custom pop up menus near the mouse pointer location?
Post by: Bob Q on December 31, 2011, 10:29:15 AM
Jaws??
Title: Re: Custom pop up menus near the mouse pointer location?
Post by: Tharwat on December 31, 2011, 11:54:03 AM
This thread is very important and you could get what you looking for .. You may need to register

http://www.cadtutor.net/forum/showthread.php?59516-DOSLib-Developer-Tools-Popup-Menu&p=403621&viewfull=1#post403621 (http://www.cadtutor.net/forum/showthread.php?59516-DOSLib-Developer-Tools-Popup-Menu&p=403621&viewfull=1#post403621)