Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyautogui as py
- import time as t
- def subscribe():
- count = 0
- while count <= 500:
- t.sleep(3)
- py.click(py.moveTo(py.locateCenterOnScreen("C:\\Scripts\\subscribe.png", grayscale=True)), duration = 0.25) #click subscribe link
- t.sleep(10)
- #py.click(py.moveTo(py.locateCenterOnScreen("C:\\Scripts\\subscribe2.png")), duration = 0.25) #click subscribe link
- py.click(1742,335) #click subscribe button
- t.sleep(3)
- py.hotkey('ctrl', 'w')
- #py.click(1888,8) #click close
- t.sleep(2)
- count +=1
- print ("Subs Count: "+str(count))
- if __name__ == '__main__':
- subscribe()
Advertisement
Add Comment
Please, Sign In to add comment