There is actually an option for a double click with the VO “mouse cursor”
object
I tested the below and it seems to work for me.
tell commander
perform command "move mouse pointer to voiceover cursor"
delay 1
end tell
output mouse summary (*
Above output satement should be what control+option+F5 outputs.
*)
tell mouse cursor
click twice
End Tell
The methods available for the mouse cursor are:
click (once,twice,thrice) with (left, button right) button)
press
release
The mouse cursor object also has a property that I believe is read only called
location. Though there are other apple script libraries that allow you to
manipulate the mouse.
HTH
Jonathan Cohn
> On Jan 10, 2015, at 04:27, Jürgen Fleger <[email protected]> wrote:
>
> Hi,
>
> I tried to extend an Apple Script from performing a cingle left mouse click
> to perform a double left mouse click. It does perform the double mouse click
> as far as I can tell it from my ears. Unfortunately it doesn’t work lik a
> double click.
> Example: If I go to a file, route the mouse cursor there manually by pressing
> VO + CMD + F5, press then VO + Shift + Space twice, it works fine to open the
> file.
> But if I use the following script it sounds as if it performs a double mouse
> click but the file doesn't open. Here’s the script:
>
> tell application "VoiceOver"
> tell commander
> perform command "move mouse pointer to voiceover cursor"
> delay 1
> perform command "click mouse"
> delay 0.3
> perform command "click mouse"
> end tell -- commander
> end tell — VoiceOver
>
> So, does anybody sees why the script doesn’t work the way I want it to?
>
> 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].
> 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.
--
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.