• 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
Re: Simulate click on a button in a flash object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simulate click on a button in a flash object


  • Subject: Re: Simulate click on a button in a flash object
  • From: DeNigris Sean <email@hidden>
  • Date: Wed, 29 Jul 2009 11:30:52 -0400

I'm trying to simulate a button click on a webpage (pandora.com) which uses flash as it's UI for internet radio.  I want to use applescript to click the stop/pause button.

I found a solution, but it's not pure Applescript.  I got an Objective-C snippet that does an actual mouse click using CGPostMouseEvent (not a UI click message, like "click at") from http://www.macosxhints.com/article.php?story=2008051406323031.

After compiling it as a command line utility, I just call it via:

do shell script ("click -x " & my button_center_x & " -y " & my button_center_y)

Sean DeNigris
email@hidden
 _______________________________________________
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

  • Prev by Date: Re: SIPS Syntax to Embed a Profile
  • Next by Date: Automating authorization dialog boxes for keychain certificate permission changes
  • Previous by thread: Simulate click on a button in a flash object
  • Next by thread: Launch Application full-screen
  • Index(es):
    • Date
    • Thread