Skip to content

Commit

Permalink
Jiggle jiggle
Browse files Browse the repository at this point in the history
  • Loading branch information
charnley committed Oct 9, 2024
1 parent a5bb074 commit 3fdccca
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bin/jiggle
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@ def main(args=None):

parser = argparse.ArgumentParser()
parser.add_argument('-v', '--version', action='version', version=__version__)
parser.add_argument('-s', '--sleep', type=int, default=60)
args = parser.parse_args(args)

while True:

x = random.randint(0,1000)
y = random.randint(0,1000)
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)
result = time.strftime("%I:%M:%S %p", localtime)

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

time.sleep(args.sleep)

if __name__ == '__main__':
main()

0 comments on commit 3fdccca

Please sign in to comment.