Brandon82 / external-overlay

External Python overlay that attaches onto a given Windows application and draws on top of it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

external-overlay

An external Python overlay that attaches/hooks onto a given Windows application and draws on top of it.

  • Uses the DearPyGui (DPG) GUI framework for drawing (DX11)
  • Uses the PyWin32 library (Windows API) for attaching to the target application

Example

Installation

Install the following dependencies:

  • Python 3.8+
  • pip install -r requirements.txt

Usage

from external_overlay import ExternalOverlay

def ui(tar_hwnd=None):
    with dpg.window():
        dpg.add_text("Hello World")

overlay = ExternalOverlay("Untitled - Notepad", ui)
overlay.start()
  • Create a new ExternalOverlay object with the window name and a UI function as parameters
  • The UI function should contain the DPG components to overlay
  • Call start() to start the overlay render loop

About

External Python overlay that attaches onto a given Windows application and draws on top of it.

License:MIT License


Languages

Language:Python 100.0%