Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Plugin to control programs on your PC
« previous next »
  • Print
Pages: [1]

Author Topic: Plugin to control programs on your PC  (Read 2226 times)

Offline JoChn

  • Member
  • *
  • Posts: 32
Plugin to control programs on your PC
« on: May 28, 2010, 12:24:16 PM »
Hi! It is possible to make some plugin to control e.g. foobar when player is connected? I mean, everything is great right now, but when you change volume, you can't change volume of foobar, but only system volume.
Or e.g. use player to control Photoshop (prev - undo; next - redo) :)
For now it will be great to control volume a foobar.
« Last Edit: May 30, 2010, 04:47:38 PM by soap »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Plugin to control programs on your PC
« Reply #1 on: June 06, 2010, 12:36:01 AM »
This feature more or less already exists on devices that can do it - see the USB HID feature if your device supports it.
Logged

Offline JoChn

  • Member
  • *
  • Posts: 32
Re: Plugin to control programs on your PC
« Reply #2 on: June 07, 2010, 06:06:47 PM »
Yes. I know this option, but I ask about add to this list my own programs? Then I add shortcuts to keys on player and follow-up that control programs which I add :D
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Plugin to control programs on your PC
« Reply #3 on: June 07, 2010, 06:25:41 PM »
Quote from: JoChn on June 07, 2010, 06:06:47 PM
Yes. I know this option, but I ask about add to this list my own programs? Then I add shortcuts to keys on player and follow-up that control programs which I add :D


Assuming your program supports hot keys, you should already be able to do this by assigning the USB HID keys to whatever you want in your programs.
Logged

Offline JoChn

  • Member
  • *
  • Posts: 32
Re: Plugin to control programs on your PC
« Reply #4 on: June 07, 2010, 06:36:30 PM »
Ehm... So I must change the hotkeys in USB HID? If yes, how to do that? Sorry, but I do not understand all of your reply.  :-[
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Plugin to control programs on your PC
« Reply #5 on: June 07, 2010, 07:03:08 PM »
Quote from: JoChn on June 07, 2010, 06:36:30 PM
Ehm... So I must change the hotkeys in USB HID? If yes, how to do that? Sorry, but I do not understand all of your reply.  :-[

USB HID just makes your device generate key presses.  Its up to you to configure your software to recognize the key presses and do something with them. 
Logged

Offline JoChn

  • Member
  • *
  • Posts: 32
Re: Plugin to control programs on your PC
« Reply #6 on: June 08, 2010, 09:46:18 AM »
But it is impossible to change hotkeys used by player?
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: Plugin to control programs on your PC
« Reply #7 on: June 08, 2010, 10:36:45 AM »
Currently there are two ways to make Rockbox send USB HID codes:

1) plug it in normally and let it go into USB mode, then press buttons while on the USB screen. This sends one of the several sets of USB HID codes we support, but they can't be redefined without changing and recompiling the Rockbox code. Many media player apps *do* support the multimedia keys, e.g. winamp has support for it in gen_hotkeys, it's just turned off by default (though in winamp at least, it doesn't capture the volume keys "properly" and it *also* controls the system volume at the same time).

You can use this with arbitrary applications via something like AutoHotkey on your PC: make it respond to the multimedia keys or any of the other sets of keys Rockbox can send, and instead send a particular hotkey to a particular app.

2) Plug it in while holding the charging-only button, then run the remote_control plugin. This has a different set of options/menus for what HID codes to send, but still can't be redefined without modifying the plugin and recompiling.

Someone could write a patch to make remote_control read a button configuration from a file, that would probably be useful.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Plugin to control programs on your PC
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.087 seconds with 15 queries.