Aren't you tired of intructing a person on a call to use their computer? This project gives you a virtual touchpad and a field to type in!
- Python 3 (I used Python 3.9.0)
- Two or more computers running Windows / macOS / Linux
- All computers need to be connected to the same network
- We first need to install the
pyautogui
module to control the cursor and keyboard. Launch Command Prompt or Terminal and type the following:
pip install pyautogui
-
You now need to download
server.py
onto one of the computers andclient.py
to the rest. -
Now run
server.py
on and note the IP address as well as the port that comes as an alert. -
On the other computers, run
client.py
. When it asks for the Host IP Address and the Port, type the details that you saw in the alert. -
On the computer running
server.py
, you should now see a tkinter window. This window is your virtual touchpad. Click inside the window, and as your cursor moves inside that window, the cursor will move simultaniosly on the client computers! -
You can adjust the window so that the touchpad can reach each end of the client computer. You can use Control + l for left click, Control + r for right click and Control + d for double click. I am working on adding dragging functionality to the touchpad too!
-
To type text, click on the 'Text' button from the menu of the touchpad. This should bring up a window. Use the text field to enter your text, and click on the 'Type Text' button to type the text on the clients, 'Delete' for 'backspace' and 'Enter' for a new line.
- This happens only if your network connection is unstable or slow.
- Try changing the '2' of line 40 in server.py to a higher number, such as 3 or 4.
In the case that you found any other bugs in the code, create an issue or send an email to [email protected] and I will fix it as soon as possible.