From d6d833497390a6f6ba7204c730454be50246e9d4 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 27 Apr 2023 14:03:50 +0800 Subject: update --- autoclicker.py | 16 ++++++++++++++++ bin/autoclicker | Bin 0 -> 7571432 bytes startgptweb | 2 ++ stopgptweb | 2 ++ 4 files changed, 20 insertions(+) create mode 100755 autoclicker.py create mode 100755 bin/autoclicker create mode 100755 startgptweb create mode 100755 stopgptweb diff --git a/autoclicker.py b/autoclicker.py new file mode 100755 index 0000000..98d6910 --- /dev/null +++ b/autoclicker.py @@ -0,0 +1,16 @@ +from time import sleep +from random import uniform +from pynput.mouse import Controller, Button +from sys import argv + +mouse = Controller() + +if len(argv) > 1: + delay = int(argv[1]) // 1000 + while True: + mouse.click(Button.left, 1) + sleep(delay) +else: + while True: + mouse.click(Button.left, 1) + sleep(round(uniform(0.035, 0.055), 3)) diff --git a/bin/autoclicker b/bin/autoclicker new file mode 100755 index 0000000..0015548 Binary files /dev/null and b/bin/autoclicker differ diff --git a/startgptweb b/startgptweb new file mode 100755 index 0000000..b134cbb --- /dev/null +++ b/startgptweb @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +docker start chatgpt-web diff --git a/stopgptweb b/stopgptweb new file mode 100755 index 0000000..7ec4bd1 --- /dev/null +++ b/stopgptweb @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +docker stop chatgpt-web -- cgit v1.2.3