senza-titolo

Pasted Oct 24, 2026, 5:05 PM1 file21 lines

Scan to open on your phone

Point a camera at the QR code - it opens this exact paste, no app needed.

https://codepastes.com/hammerspoon
senza-titolo

clickLogger = hs.eventtap.new({
  hs.eventtap.event.types.leftMouseDown
}, function(event)
  local el = hs.axuielement.systemElementAtPosition(
    event:location()
  )
  if not el then return false end

  local app = hs.application.applicationForPID(el:pid())
  if app and app:name() == "Winstrix" then
    print(hs.inspect({
      role = el:attributeValue("AXRole"),
      title = el:attributeValue("AXTitle"),
      description = el:attributeValue("AXDescription")
    }))
  end
  return false
end)

clickLogger:start()

523 chars · codepastes.com