These are chat archives for rust-lang/rust

27th
Mar 2016
Yury
@YurySolovyov
Mar 27 2016 13:21
Hi, can I somehow grab user input from system even if my window is not in focus, I'm trying to make app react on global, system-wide key shortcuts
Vladimir Motylenko
@vldm
Mar 27 2016 13:29
@YuriSolovyov hello, feature that you asked is OS specific, and there no general way to do it.
Yury
@YurySolovyov
Mar 27 2016 13:31
ok, I guess now I need to search for this on per-platform basis
starting from win
Vladimir Motylenko
@vldm
Mar 27 2016 13:36
If you know c++, you can see how its done in ahk https://github.com/Lexikos/AutoHotkey_L
Yury
@YurySolovyov
Mar 27 2016 13:50
not really
I thought this should be if some UI libs, but then tend to only handle events from their windows
Peter Atashian
@retep998
Mar 27 2016 18:16
@YuriSolovyov Windows has a dedicated method for registering hotkeys https://msdn.microsoft.com/en-us/library/windows/desktop/ms646309%28v=vs.85%29.aspx
Yury
@YurySolovyov
Mar 27 2016 18:21
yeah, sorry for not piging, I've kind of solved it