Script to keep the F key pressed while crafting in palworld
https://www.pocketpair.jp/palworld
Palworld F Key Pressed Script is a Python script that allows you to toggle the 'F' key on Windows by pressing F10. The script uses the pynput library to capture keyboard events and the pyautogui library to simulate key presses.
- Python 3.x installed on your system.
Use the standalone executable provided on the release page or here
Or build the script yourself following these steps:
-
Clone the Repository:
git clone https://github.com/Benny93/palworld-keyholder.git cd Benny93/palworld-keyholder
-
Install Dependencies:
Run the following command to install the required dependencies:
pip install -r requirements.txt
-
Run the Script:
Execute the script by running the following command:
python main.py
The script will start listening for F10 key presses. Press F10 to toggle the 'F' key.
-
Exit the Script:
To stop the script, press strg+c. This will release the 'F' key (if pressed) and exit the script.
If you want to distribute the script as a standalone executable on Windows, you can use PyInstaller.
-
Install PyInstaller:
pip install pyinstaller
-
Create the Executable:
pyinstaller --onefile main.py --name keyholder -p .\venv\Lib\site-packages\
The standalone executable will be located in the
dist
folder.