Re: Registering/capturing shortcut keys in Linux?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Perhaps Autokey will give you an idea. It appears to use a daemon running in the background to trap keys. Examine the sourcecode to see how it works.

An Autokey script to launch eu and a program looks like this:

output = system.exec_command("eui ~/demos/BEAR") 
keyboard.send_keys(output) 

You could send parameters along with the command if needed.

However, affecting a running program is going to be a bigger deal. You'll probably have to communicate via files or pipes.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu