Using Automator to perform keystroke and middle mouse down

I am a quadriplegic with limited use of my fingers, using Maya for 3-D modeling and I am having difficulty setting up a voice command which would enable me to perform a middle-mouse down event while simultaneously holding down the “v” key on the keyboard. I am using Yosemite on a MacPro and would like to use my headset in Dictation along with Automator to perform this operation. My research so far, suggest that I will need to write a JavaScript which would be run in Automator. I am wondering, is there a way to accomplish this using Automator without needing to use JavaScript?


The function I am trying to perform would only run in my Maya application and would be triggered by my voice command to snap a vertice or an edge which has been previously selected to the one that is selected next. This automation would hold both the middle mouse button and the “v” key for a certain time period and then, as I use the mouse with my hand, pressing no buttons there, only wiggling over the newly selected vertice or edge, would snap the previously selected vertice over to the new location! Another important part of this command would be to somehow add a “middle mouse up” event to end the command to release it, but I haven't gotten there yet.


In Yosemite I have enabled Enhanced Dictation. Then, in “Accessibility,” I have highlighted “Dictation" and then clicked “Dictation Commands…" I have named my new voice command “V Snap.” I abandoned the keyboard shortcuts option here and moved on to Automator because neither the “v” key, nor the middle mouse button are functions that I can add to a new Dictation Command in Accessibility. The only keys I can enter here are F keys and those of the extended keyboard, and pressing the middle mouse button only seems to perform the function of returning this pulldown menu to the "choose…" option.


Automator looks like it would be a good way to make this happen because the commands I create with Automator appear in the Dictation Commands of the Accessibility panel. This needs to be a voice command which would not be recorded in Automator because it needs to occur at different places on the screen for each event as I model. Is there is a way to do using the functions that Automator already has? Or, should I figure out the JavaScript next?


Thank you (-:

Mac Pro, OS X Yosemite (10.10.1)

Posted on Apr 9, 2016 4:26 PM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using Automator to perform keystroke and middle mouse down

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.