xiaohongshu
xiaohongshu
detect-buttons
Guide user through button detection for an unknown mouse using Slicer Python console
Full skill instructions
Guide user through button detection for an unknown mouse.
Use this skill when:
Explain the Process Tell the user:
Provide Detection Code Give the user this code to paste in Slicer Python console:
import qt
class ButtonDetector(qt.QObject):
def __init__(self):
super().__init__()
self.detected = []
slicer.app.installEventFilter(self)
print("Button detection active. Press mouse buttons...")
print("Press Ctrl+C in console when done.")
def eventFilter(self, obj, event):
if event.type() == qt.QEvent.MouseButtonPress:
btn = int(event.button())
mods = int(event.modifiers())
if btn not in [b[0] for b in self.detected]:
self.detected.append((btn, mods))
print(f"Detected button: {btn} (modifiers: {hex(mods)})")
return False
def stop(self):
slicer.app.removeEventFilter(self)
print("\nDetection stopped. Results:")
for btn, mods in self.detected:
print(f" Button {btn}")
return self.detected
detector = ButtonDetector()
# When done: detector.stop()
Collect Results After user runs detection, ask them to share:
Map to Profile Help user create mapping:
Code 1 -> Left Click (not remappable)
Code 2 -> Right Click (not remappable)
Code 4 -> Middle Click
Code 8 -> Back / Thumb Back
Code 16 -> Forward / Thumb Forward
Code 32 -> Extra button (side, thumb, etc.)
Create Profile Use the add-mouse-profile skill to create the profile JSON.
Button not detected:
input groupWrong button detected:
Button detection active. Press mouse buttons...
Detected button: 1 (modifiers: 0x0) # Left click
Detected button: 2 (modifiers: 0x0) # Right click
Detected button: 4 (modifiers: 0x0) # Middle click
Detected button: 8 (modifiers: 0x0) # Back
Detected button: 16 (modifiers: 0x0) # Forward
Detected button: 32 (modifiers: 0x0) # Thumb button
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience