Skip to content

Instantly share code, notes, and snippets.

@ronykroy
Last active October 22, 2019 10:10
Show Gist options
  • Save ronykroy/d7a13779929cd77baf95fff1f171ba90 to your computer and use it in GitHub Desktop.
Save ronykroy/d7a13779929cd77baf95fff1f171ba90 to your computer and use it in GitHub Desktop.
import pyautogui, random,time
#print('screen size',pyautogui.size()) # get screen dims
#print('position of cursor ',pyautogui.position())
# place mouse at various points to determine bounds of..
# safe to click areas on th colab notebook
print('press ctrl c to stop')
while True: # The dims below: wer obtained from the output command above
pyautogui.click(random.randint(144,1591), random.randint(240, 940))
time.sleep(199)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment