• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Clicking the mouse?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clicking the mouse?


  • Subject: Clicking the mouse?
  • From: "@lbutlr via AppleScript-Users" <email@hidden>
  • Date: Sat, 9 Nov 2019 16:48:27 -0700

I have the following script:

tell application "System Events"
        keystroke "2" using {control down}
        tell application "Battle.net" to activate
        delay 1.5
        click at {260, 1360}
end tell

I thought this would click on the large “Play” button in the Battle.net app,
but the click action does nothing. I’ve veyfied the portion on the screen, and
the location is just about dead-center on the button (which is quite large).

The app is open, the delay is to account for the screen switching.

When I run the script in Script Editor, Script editor returns

group 1 of scroll area 1 of application process "Finder" of application "System
Events”

If I change the {} to ()s I get:

window "Blizzard Battle.net" of application process "Battle.net" of application
"System Events”

But in neither case is the button clicked.


--
I don't have a solution but I admire the problem.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Clicking the mouse?
      • From: Deivy Petrescu via AppleScript-Users <email@hidden>
    • Re: Clicking the mouse?
      • From: Jean-Christophe Helary via AppleScript-Users <email@hidden>
  • Prev by Date: [ANN] Simple PDF Reader a countermeasure for macOS 10.15 Bug
  • Next by Date: Re: Clicking the mouse?
  • Previous by thread: [ANN] Simple PDF Reader a countermeasure for macOS 10.15 Bug
  • Next by thread: Re: Clicking the mouse?
  • Index(es):
    • Date
    • Thread