0

I have windows 10 installed on my mac using parallels desktop. I want to send a key combination to windows machine for navigating between browser tabs (opened inside virtual window 10) from mac using apple script.

I've tried:

tell application "Windows 10" to activate
tell application "System Events"

   key down {control}
   keystroke "1"
   key up {control}

end tell

And

tell application "Parallels Desktop" to activate
tell application "System Events"

   keystroke "1" using control down

end tell

The above code worked in mac browser but it doesn't work for virtual machine. I've even tried to fire mouse click event click at {x, y} after activating virtual machines window but click event also doesn't work.

You must log in to answer this question.

Browse other questions tagged .