Skip to content

Instantly share code, notes, and snippets.

@amigojapan
Last active September 8, 2024 10:06
Show Gist options
  • Select an option

  • Save amigojapan/b4d5b9c6fb4e28af820731ba75f1e67c to your computer and use it in GitHub Desktop.

Select an option

Save amigojapan/b4d5b9c6fb4e28af820731ba75f1e67c to your computer and use it in GitHub Desktop.
#Liquid: you need to install pyhton3
#and pip3 then do pip3 install pyautogui and pip3 install apscheduler
import pyautogui
from apscheduler.schedulers.blocking import BlockingScheduler
def some_job():
pyautogui.moveRel(0, 10) # move mouse 10 pixels down
##print "Decorated job"
scheduler = BlockingScheduler()
scheduler.add_job(some_job, 'interval', hours=1)
scheduler.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment