diff --git a/Client/serversend - mirror - mouse.py b/Client/serversend - mirror - mouse.py index 3de6001..3a6e57f 100644 --- a/Client/serversend - mirror - mouse.py +++ b/Client/serversend - mirror - mouse.py @@ -6,12 +6,10 @@ from pynput.mouse import Button, Controller import time - mouse=Controller() - # device's IP address -SERVER_HOST = "10.4.27.243" #(socket.gethostbyname(socket.gethostname())) +SERVER_HOST = "192.168.1.8" #(socket.gethostbyname(socket.gethostname())) SERVER_PORT = 10002 # receive 4096 bytes each time BUFFER_SIZE = 128 @@ -79,9 +77,13 @@ while True: print(y) mouse.position = (x,y) if (TrR == 'R'): - mouse.press(right) - else: - mouse.press(left) + mouse.click(Button.right, 1) + print (TrR) + + else: + mouse.click(Button.left, 1) + print (TrR) + except: print ("error") diff --git a/dataM.txt b/dataM.txt new file mode 100644 index 0000000..960a857 --- /dev/null +++ b/dataM.txt @@ -0,0 +1 @@ +L714,741 \ No newline at end of file