Sample Header Ad - 728x90

Applescript click automation in Google Chrome browser?

11 votes
3 answers
36426 views
Hello fellow programmers! I would like to save some applescript code as an application, so that when I open the application it will go to Google Chrome and answer an incoming call in Google Voice. I will have my gmail account already open in the chrome browser, so all that is needed is for the applescript application to tell google chrome to activate, then click in a particular area (where the button will appear) to accept the call. How can I find out the coordinates of where I want the mouse to click? Because I am making a separate application to click elsewhere and end the call. Can anyone tell me how I would code this in applescript? or is there an easier way? The following code is similar to something I found, and it works, but i'm not sure where/if it is clicking... tell application "Safari" to activate tell application "System Events" tell process "Safari" click at {300, 100} -- {from left, from top} end tell end tell Thank you for your time, -Sebastian
Asked by seba1685 (111 rep)
Feb 5, 2013, 05:07 AM
Last activity: Sep 16, 2015, 04:33 AM