Alfred is a popular app that supports launching applications, searching for files, and much other functionality. The primary interface to Alfred is a kind of "popup" that is invoked with a hotkey. I am trying to listen for the activation of the popup in Hammerspoon, but can't figure out how to do so because invoking the Alfred popup does not "activate" the Alfred application. Is there any way to detect Alfred's activation?
--
You received this message because you are subscribed to the Google Groups "Hammerspoon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hammerspoon+unsubscribe@googlegroups.com.
To post to this group, send email to hamme...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hammerspoon/8ac89b61-0497-4d58-a69d-f1f7371d53ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HeyYou might take a look at hs.windowfilter, but its underlying mechanisms are pretty much the hs.application watcher, so it may also not see anything useful.Cheers,Chris
On 22 March 2017 at 03:00, Sean Mackesey <s.mac...@gmail.com> wrote:
Alfred is a popular app that supports launching applications, searching for files, and much other functionality. The primary interface to Alfred is a kind of "popup" that is invoked with a hotkey. I am trying to listen for the activation of the popup in Hammerspoon, but can't figure out how to do so because invoking the Alfred popup does not "activate" the Alfred application. Is there any way to detect Alfred's activation?
--
You received this message because you are subscribed to the Google Groups "Hammerspoon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hammerspoon...@googlegroups.com.
To post to this group, send email to hamme...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hammerspoon/8ac89b61-0497-4d58-a69d-f1f7371d53ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Cheers,Chris
TARGET_APP = 'Google Chrome'
appFilter = hs.window.filter.new(false)
appFilter:setAppFilter(TARGET_APP, true)
appFilter:subscribe({hs.window.filter.windowUnfocused}, function (win, appName, evt)
print(string.format("WINDOW EVENT OCCURRED", 'SOMEWINDOW', appName))
end, true)
modifierKeyTap = hs.eventtap.new({hs.eventtap.event.types['flagsChanged']}, function (event)
print ('flag changed!')
end)
modifierKeyTap:start()
2017-03-27 12:20:17: 12:20:17 ** Warning: wfilter: Alfred 3 (132) is not registered yet