This project is designed to prevent being marked as AFK (Away From Keyboard) in the game Final Fantasy XIV. The application monitors user input and simulates key presses to ensure the game remains active.
- Monitors keyboard and mouse input to reset AFK timers.
- Simulates
Ctrl
key presses at regular intervals when no input is detected. - Option to keep the application window always on top.
- Error handling to alert the user if the game window cannot be found.
- The window will display the time since the last input, AFK mode status, and the time until the next
Ctrl
key press. - Use the "Keep window on top" checkbox to keep the application window above other windows.
pip install PyQt5 pynput pygetwindow pyautogui
To compile the application to a standalone executable, you will need to install pyinstaller
and then use it to create the executable.
-
Install
pyinstaller
:pip install pyinstaller
-
Compile the application:
pyinstaller --onefile --windowed ffxiv-afk.py
This will generate a standalone executable in the
dist
directory.
The following UML sequence diagram illustrates the main flow of the application: