(Copied from original User Voice forum)
"Improve scriptCtx or add a new mel command that allows usage of all mouse buttons and modifier keys to run multiple commands from the same tool.
Example:
Create a polygon reduction tool that merges Target Weld, Delete Edge Loop and Collapse Edge Ring in one single tool. The switch would be done with modifier keys that can be queried when the click command is activated.
At the moment the tool is based on the selection context and I've tried using getModifier to run more commands in the same tool but I'm practically limited to SHIFT and CTRL+SHIFT since CTRL+Click will deselect and I cannot run that on my first component click and ALT+Click is reserved for camera movement and again, does nothing.
Also check out my other suggestion regarding pressed keys:
http://mayafeedback.autodesk.com/forums/160514-ideas-for-maya-forum/suggestions/18495562-query-keypr..."