Skip to content

Instantly share code, notes, and snippets.

@sajith-rahim
Last active July 6, 2022 07:23
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 sajith-rahim/3ee2abd01a82e5454f15756672f3ff94 to your computer and use it in GitHub Desktop.
Save sajith-rahim/3ee2abd01a82e5454f15756672f3ff94 to your computer and use it in GitHub Desktop.
# ghub:Johnson468
import pyautogui
import time
import sys
from datetime import datetime
pyautogui.FAILSAFE = False
numMin = 1
if ((len(sys.argv)<2) or sys.argv[1].isalpha() or int(sys.argv[1])<1):
numMin = 1
else:
numMin = int(sys.argv[1])
while(True):
x=0
while(x<numMin):
time.sleep(60)
x+=1
for i in range(0,200):
pyautogui.moveTo(0,i*4)
pyautogui.moveTo(1,1)
for i in range(0,3):
pyautogui.press("shift")
print("heartbeat at {}".format(datetime.now().time()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment