kAnyRemote supports DCOP, so it is possible to manage it from command line.
For example:
Establish connection:
dcop kanyremote serviceInterface Connect
Verify is connection active:
dcop kanyremote serviceInterface isConnected
Close connection:
dcop kanyremote serviceInterface Disconnect
Set configurational file (kAnyRemote will close current connection if device setting is changed):
dcop kanyremote serviceInterface setCfgFile "file name"
Switch remote control functionality on/off:
dcop kanyremote serviceInterface remoteOn true/false
Get current mode:
dcop kanyremote serviceInterface getMode
Set mode (deprecated, use dcop kanyremote serviceInterface sendCommand 'SetMode(_new_mode_);' instead:
dcop kanyremote serviceInterface setMode new_mode_name
Send command to JSR82 Java Client (an example):
dcop kanyremote serviceInterface sendCommand 'Set(fullscreen,on);'
In this command it is possible to use any command which could be used in configurational file.