Skip to content

How to Run

CodeDevError edited this page Aug 1, 2024 · 1 revision
  • First you need to make sure you have python installed as well as these requirments;

  • COMMAND : "pip install flask flask_socketio pynput pygame opencv-python"

  • If you want to compile client.py into a exe run "pip install pyinstaller"

Then run

"pyinstaller --onefile --windowed --hidden-import=PIL --hidden-import=comtypes --hidden-import=pycaw --hidden-import=pyautogui --hidden-import=cv2 --hidden-import=vidstream --hidden-import=socket --hidden-import=subprocess --hidden-import=os --hidden-import=platform --hidden-import=json --hidden-import=urllib.request --hidden-import=shutil --hidden-import=webbrowser --hidden-import=ctypes --hidden-import=winreg --hidden-import=psutil --hidden-import=time --hidden-import=re --hidden-import=glob --hidden-import=random --hidden-import=pynput.keyboard --hidden-import=pynput.mouse --hidden-import=pycaw.pycaw --hidden-import=ctypes.wintypes --hidden-import=logging client.py"

In the same directory as client.py

Then you need to first run app.py | This will host the web server on the link http://127.0.0.1:5000 Then run the server.py file to set up the backend. Then you can run the client.py file. This is the file for the pc to have access.

Questions: Why wont it work?

Because its currently hosted on your pc.

To fix this go into the app.py server.py and client.py, and change the "127.0.0.1" to your public ip. Then set up port forwarding watch this "https://www.youtube.com/watch?v=B9jH8QPsVOw&pp=ygUPcG9ydCBmb3J3YXJkaW5n"

Clone this wiki locally