-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
global listeners for laptop keyboard #6
Comments
Hi, @MaxPleaner there is not any current ability for Artoo to listen for keyboard events outside of a terminal window. That would require additional coding beyond what it currently handles. A PR that added this would be happily accepted! :) |
Hey Ron, thanks for this response. I have no idea how to begin doing this. On Sat, Feb 27, 2016 at 6:17 PM, Ron Evans notifications@github.com wrote:
|
Capturing global keyboard events outside of a window focus in a cross-platform way is not going to be easy, I can tell you that... |
On a Linux platform, it looks like it can be done with |
Hello, I am trying to create a global keyboard-macros program on my personal laptop.
This is Ubuntu 14.04 on a HP EliteBook2540p running Ruby 2.4.0-dev
Currently I have artoo-keyboard working for text that is typed directly into the terminal where the script is running.
I'm trying to have global listeners (so the terminal doesnt have to be in focus).
I've tried specifying the keyboard port using the following:
connection :keyboard, adaptor: :keyboard, port: '/devices/platform/i8042/serio0/input/input3'
I got this port number by running
cat /proc/bus/input/devices
.I noticed that if I also include
device :keyboard, driver: :keyboard, connection: :keyboard
, then the above "connection" call using port has no effect. So I've removed it.When I try running the script, I get the following trace:
I've also tried running the program with
sudo
but it has the same output.I'm new to all this hardware business, so I would appreciate knowing if I'm obviously making a mistake somewhere or if my approach is wrong in a serious way.
Thanks
The text was updated successfully, but these errors were encountered: