From 3fdccca999d66df7c21ae3167c4b47ce7032b626 Mon Sep 17 00:00:00 2001 From: Jimmy Charnley Kromann Date: Wed, 9 Oct 2024 14:36:28 +0200 Subject: [PATCH] Jiggle jiggle --- bin/jiggle | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) mode change 100644 => 100755 bin/jiggle diff --git a/bin/jiggle b/bin/jiggle old mode 100644 new mode 100755 index ec21e82..4eb1e7f --- a/bin/jiggle +++ b/bin/jiggle @@ -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()