Created
October 14, 2020 22:58
-
-
Save Davidblkx/1b5320c45adc00615e113cc58b59019b to your computer and use it in GitHub Desktop.
python script to keep pc alive
This file contains 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
# /bin/python | |
import mouse | |
import time | |
(X, Y) = mouse.get_position() | |
mov = False | |
while True: | |
X = X + 1 if mov else X - 1 | |
mov = not mov | |
mouse.move(X, Y) | |
mouse.click() | |
time.sleep(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment