diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/main.py b/main.py index 9fc14ad..ba46f14 100644 --- a/main.py +++ b/main.py @@ -34,8 +34,10 @@ def handle_client(client_socket): try: data = data.decode("utf-8") Point = json.loads(data)["Point"] - print(Point[0]) - + x_y = Point[0] + x = x_y["x"] + y = x_y["y"] + click_it(x, y) except Exception as e: print(e) # 返还一个 ACK 在计算机网络中的意思是返回包确认,表示收到 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..dfb2a87 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +PyAutoGUI~=0.9.54 \ No newline at end of file