Last active
September 8, 2024 10:06
-
-
Save amigojapan/b4d5b9c6fb4e28af820731ba75f1e67c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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