Skip to content

Commit

Permalink
Add jiggle
Browse files Browse the repository at this point in the history
  • Loading branch information
charnley committed Oct 9, 2024
1 parent f5bd65d commit e9cf214
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions bin/jiggle
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env python3

import logging
import pyautogui
import random
import time

logger = logging.getLogger(__name__)

__version__ = 1.0

def main(args=None):
import argparse

logging.basicConfig(level=logging.DEBUG)

parser = argparse.ArgumentParser()
parser.add_argument('-v', '--version', action='version', version=__version__)
args = parser.parse_args(args)

while True:

x = random.randint(0,1000)
y = random.randint(0,1000)

pyautogui.moveTo(x,y)

localtime = time.localtime()

result = time.strftime("%I:&M:%S %p", localtime)

print('Moved at ' + str(result) + ' (' + str(x) + ', ' + str(y) + ')')
time.sleep(300)

if __name__ == '__main__':
main()

0 comments on commit e9cf214

Please sign in to comment.