Remotely control your PC using your phone (Windows only)
masterYou can use pywhatkit.start_server() to turn your PC into a remote-controlled device via a phone browser.
Requirements & Setup:
- Windows Only: This feature is only supported on Windows.
- Network: Both PC and phone must be on the same network.
- Network Profile: On your PC, ensure the Network Profile is set to Private (Network and Internet Settings > Properties > Network Profile).
- Execution:
- Run
pywhatkit.start_server()in your Python script. - Open Command Prompt on your PC and run
ipconfigto find yourIPv4 Address. - On your phone's browser, navigate to
[YOUR_IPv4_ADDRESS]:8000(e.g.,192.168.0.1:8000).
- Run
Once connected, you can move the cursor, type, and scroll using your phone.
import pywhatkit
pywhatkit.start_server()