Am 14.10.2011 15:52, Marco Gergele wrote:
Hi,

on certain conditions I want to simulate a Key Press on active client, the
Key "Scroll lock", which xev calls ISO_Next_Group keycode 78.

How can I send that key from rc.lua? Any hint?

switchKey = awful.key({}, "#78");
switchKey:emit_signal("press")

doesnt't work, it just wants to execute "press". :-(

That must be used in controlling audio players or similar tasks too, so I
wonder I can't find any hint on it.

Any help really welcome!
Marco.


root.fake_input("key_press", 78)
root.fake_input("key_release, 78)

--
To unsubscribe, send mail to [email protected].

Reply via email to