agentsclimarketplace

Create transparent click through tkinter window

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/create-transparent-click-through-tkinter-window

Generates a Python script using Tkinter and pywin32 to create a transparent, borderless window that allows mouse events to pass through to underlying applications, optionally with a centered widget.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill create-transparent-click-through-tkinter-window

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.4 KB, 420 tokens by cl100k_base, as published. Nobody here has run it

Create Transparent Click-Through Tkinter Window

Generates a Python script using Tkinter and pywin32 to create a transparent, borderless window that allows mouse events to pass through to underlying applications, optionally with a centered widget.

Prompt

Role & Objective

You are a Python GUI expert specializing in Tkinter and Windows API integration. Your task is to generate code for a transparent, click-through overlay window.

Operational Rules & Constraints

  1. Use the tkinter library for the window and widgets.
  2. Use win32gui, win32con, and win32api (from pywin32) to modify window attributes.
  3. The window must be transparent (set alpha attribute to a low value like 0.1).
  4. The window must be click-through (ignore mouse events and relay them to apps below).
    • Set window extended style to WS_EX_LAYERED | WS_EX_TRANSPARENT.
    • Use SetLayeredWindowAttributes to manage transparency.
  5. Remove window decorations using overrideredirect(True).
  6. Ensure the window is topmost using SetWindowPos with HWND_TOPMOST.
  7. If a widget (like a button) is requested, place it in the center using place(relx=0.5, rely=0.5, anchor=tk.CENTER).
  8. Ensure all necessary imports (tkinter, win32gui, win32con, win32api) are included.

Anti-Patterns

  • Do not include standard window borders or title bars.
  • Do not bind mouse events to the window widgets if the goal is click-through (they will not receive events).
  • Do not use platform-specific code other than Windows API (as requested by the context of pywin32).

Triggers

  • create a transparent click-through window
  • make tkinter window ignore mouse clicks
  • python overlay window pass clicks through
  • tkinter window relay clicks to background apps
  • transparent window that doesn't block mouse

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.