Bug 234679

Summary: Add keybindings (emulate keypress) to irkick (kdelirc)
Product: kdelirc Reporter: Murz <MurzNN>
Component: generalAssignee: Michael Zanetti <mzanetti>
Status: RESOLVED NOT A BUG    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Murz 2010-04-18 09:47:37 UTC
Version:            (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

I need to emulate keyboard keys (Up, Down, Left, Right) via IR remote dongle. 
I use IRKick application, it works normally, I can control Amarok, Volu me, etc.
But, for example, in Amarok I can show "Open file" dialog, but can't select anything via remote, because can't assign buttons to keyboard press or shortcuts. 
I can't find any way to set an action "key press" or "execute keyboard shortcut" for IR Transmitter button.

Will be good to set this in a future versions, assigning buttons to keypress or shortcut (for example 'ctrl+a').
Comment 1 Michael Zanetti 2010-04-19 19:55:55 UTC
I think it is not possible to implement this in a platform independent manner. However, you can konfigure kdelirc already to do this.

- install xte on your computer
- create a new action using the Program Launcher Profile
- Select function "Execute"
- insert parameter 1: xte
- insert parameter 2: keydown Control_L,key a,keyup Control_L

This should create an action executing the following command:
xte "keydown Control_L" "key a" "keyup Control_L"

which in turn triggers the Ctrl+a keypress.
Comment 2 Murz 2010-04-19 20:26:06 UTC
Many thanks for info, all work very good with xte!