Closed EvanZ closed 7 years ago
To isolate, can you try in TextEdit? Add a debug line right after local current =
with print(current)
. That should output something like hs.application: TextEdit (0x61000065e808)
. You could also try adding print(choosen.text)
right before hs.eventtap.keyStrokes
to make sure it's sending the right keystrokes.
Oh, and make sure to enable Hammerspoon in Accessibility.
I tried looking up these two NBA players (I'm a Warriors lol!).
hs.application: TextWrangler (0x7fc12ae81588)
-- Loading extension: fnutils
draymond green
-- Loading extension: eventtap
hs.application: TextWrangler (0x7fc12ae24c38)
draymond green
hs.application: TextWrangler (0x7fc12f990128)
stephen curry
Hmm. Well it's obviously doing something. Hard to say why it's failing to output.
Ok, now it seems to be working with TextEdit and the Terminal app. Just not TextWrangler for some reason. Oh, well. Thanks!
Dunno if TextWrangler does something special with keystrokes. It should be indistinguishable from the keyboard :shrugs:
I followed installation instructions and get to the point where I can type and get autocomplete results, but when I select one it doesn't get pasted into the text editor (or terminal) I'm using. Here is the log from Hammerspoon console: