This project is a Python application that displays a translucent circle at the current mouse position when a specific hotkey is pressed. The circle is drawn using PyQt5 and the display of the circle is controlled using a timer. The application also allows you to exit by pressing another hotkey.
- Draws a translucent circle at the current mouse position.
- The circle automatically disappears after a specified duration.
- Supports hotkeys to trigger the circle display and to exit the application.
- Python 3.x
- PyQt5
- pyautogui
- keyboard
-
Clone this repository:
git clone https://github.com/Jishnu-Prasad888/Cursor-Finder.git
-
Navigate to the project directory:
cd Cursor-Finder
-
Install the required Python packages:
pip install -r requirements.txt
-
Run the script:
python main.py
-
Use the following hotkeys:
- Show Circle:
Ctrl + Shift + Alt + A
- Exit Application:
Ctrl + Alt + X
- Show Circle:
When you press the "Show Circle" hotkey, a translucent circle will be drawn at the current mouse position. The circle will remain visible for 1 second before disappearing. You can adjust the display duration by modifying the time
parameter in the Circle
class.
To exit the application, press the "Exit Application" hotkey.
- Circle Class: Inherits from
QWidget
and handles the drawing of the circle with specified transparency and radius. Uses aQTimer
to close the window after a specified time. - run_on_hotkey Function: Retrieves the current mouse position and creates an instance of the
Circle
class at that position. - exit_func Function: Exits the application.
- main Function: Sets up hotkeys and starts listening for them using the
keyboard
library.