Skip to content

Instantly share code, notes, and snippets.

@ayaysir
Created October 21, 2022 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayaysir/7514760620ff9f305fe253c78b4c250a to your computer and use it in GitHub Desktop.
Save ayaysir/7514760620ff9f305fe253c78b4c250a to your computer and use it in GitHub Desktop.
tell application "Google Chrome" to activate
-- (60*60*5)/5 = 3600
repeat 100000 times
-- space bar double press
if application "Google Chrome" is running then
tell application "System Events" to key code 49
delay 0.4
tell application "System Events" to key code 53
-- tell application "System Events" to click at {1088, 994}
-- tell application "System Events" to click at {1088, 994}
delay 2.8
end if
end repeat
-- Start Running : cmd + r
-- End Running : cmd + .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment