hammerspoon
unknown
lua
4 years ago
472 B
8
Indexable
app = hs.application.applicationForPID(406)
hs.hotkey.bind(
{"cmd", "alt", "ctrl"},
"W",
function()
myTimer =
hs.timer.doEvery(
120,
function()
hs.eventtap.keyStrokes("a", app)
end
)
hs.alert.show("Starting script!")
end
)
hs.hotkey.bind(
{"cmd", "alt", "ctrl"},
"Q",
function()
myTimer:stop()
hs.alert.show("Stopping script!!")
end
)
Editor is loading...