I use this script in Xcode, and it works. You're right, though, that it is only
holding or releasing the mouse, not both. Simply change the line:
key code 49 using {control down, option down, command down, shift down}
to:
key code 49 using {control down, option down, shift down}
and it should click normally.
> On Nov 7, 2014, at 7:10 AM, Jürgen Fleger <[email protected]> wrote:
>
> Right now I tried the following:
> I deleted „command down“ in the line which should perform the click. It seems
> to work most of the time. Funnily enough it still performs a hold down mouse
> key from time to time. But what’s mor of an issue: the click doesn’t always
> work. The click sound occurs but the checkmark isn’t always clicked. Any
> idea? Did you tried it yourself?
>
> All the best
> Jürgen
>
>
>
>> Am 07.11.2014 um 12:58 schrieb Jürgen Fleger <[email protected]
>> <mailto:[email protected]>>:
>>
>> Hi Alex,
>>
>> thanks a lot. It worked so far that the mouse performed a click but
>> obviously it was not a normal click but a hold down click. So I had to
>> release the mouse cursor manually. Could you have a look on the script and
>> help me to understand, wether I’mright in this?
>> And are you willing to add something in the script so that it performes a
>> typical single mouse click? That would help me a lot to have such a script.
>> BTW: Recently I listened to a Podcast by you on Applevis. I enjoy very much
>> to have now a voice for your name. :-) And I enjoyed your Podcast as well.
>> Thanks and all the best
>> Jürgen
>>> Am 06.11.2014 um 21:17 schrieb Alex Hall <[email protected]
>>> <mailto:[email protected]>>:
>>>
>>> I don't know about the second one, but I recently made a script similar to
>>> the first one. I use key commands, since the scripting dictionary for
>>> VoiceOver doesn't allow the mouse cursor to be moved. Since you can't
>>> change VO's default commands, though, this should still work.
>>>
>>>
>>> tell application "System Events"
>>> key code 96 using {control down, option down, command down}
>>> key code 49 using {control down, option down, command down, shift down}
>>> end tell
>>>> On Nov 6, 2014, at 2:21 PM, Jürgen Fleger <[email protected]
>>>> <mailto:[email protected]>> wrote:
>>>>
>>>> Hi Folks,
>>>>
>>>> I wonder wether it was very complicated to create 2 scripts for the
>>>> following tasks:
>>>>
>>>> 1. Route the mouse cursor to VO and perform a click.
>>>>
>>>> 2. Play a determined sound and restart or shut down the Mac. This might be
>>>> for 2 scripts.
>>>>
>>>> If it was not very complicated would there possibly someone in this list
>>>> who helped me to accomplish this? Or could someone even create these two
>>>> or three scripts and offer them for public usage for free?
>>>>
>>>> Thanks and
>>>> all the best
>>>> Jürgen
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google Groups
>>>> "MacVisionaries" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an
>>>> email to [email protected]
>>>> <mailto:[email protected]>.
>>>> To post to this group, send email to [email protected]
>>>> <mailto:[email protected]>.
>>>> Visit this group at http://groups.google.com/group/macvisionaries
>>>> <http://groups.google.com/group/macvisionaries>.
>>>> For more options, visit https://groups.google.com/d/optout
>>>> <https://groups.google.com/d/optout>.
>>>
>>>
>>> --
>>> Have a great day,
>>> Alex Hall
>>> [email protected] <mailto:[email protected]>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "MacVisionaries" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [email protected]
>>> <mailto:[email protected]>.
>>> To post to this group, send email to [email protected]
>>> <mailto:[email protected]>.
>>> Visit this group at http://groups.google.com/group/macvisionaries
>>> <http://groups.google.com/group/macvisionaries>.
>>> For more options, visit https://groups.google.com/d/optout
>>> <https://groups.google.com/d/optout>.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "MacVisionaries" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected]
>> <mailto:[email protected]>.
>> To post to this group, send email to [email protected]
>> <mailto:[email protected]>.
>> Visit this group at http://groups.google.com/group/macvisionaries
>> <http://groups.google.com/group/macvisionaries>.
>> For more options, visit https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/macvisionaries
> <http://groups.google.com/group/macvisionaries>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
Have a great day,
Alex Hall
[email protected]
--
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.