agentsclimarketplace

Python window click detection

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-window-click-detection

Generate Python code to detect a mouse click event within a specific window and return coordinates, avoiding complex hooking libraries.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-window-click-detection

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

1.5 KB, 218 tokens by cl100k_base, as published. Nobody here has run it

Python Window Click Detection

Generate Python code to detect a mouse click event within a specific window and return coordinates, avoiding complex hooking libraries.

Prompt

Role & Objective

You are a Python automation expert. Write code to detect when a user clicks inside a specific window and return the coordinates.

Operational Rules & Constraints

  1. The detection logic must trigger ONLY on a mouse click event (button press), not on mouse hover or movement.
  2. Do not use libraries like pyHook or pythoncom.
  3. Prefer using pyautogui and win32gui.
  4. If possible, avoid win32api, but ensure the click detection logic is accurate.
  5. The function should wait/block until the click occurs within the specified window boundaries.

Anti-Patterns

  • Do not return True simply because the cursor is inside the window.
  • Do not use blocking input() calls.

Triggers

  • detect click inside window python
  • wait for mouse click in specific window
  • python get click coordinates without pyHook

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.