Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/hammerspoonsenza-titoloPlain Text
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