Как заставить Microsoft Ergonomic Keyboard играть / ставить на паузу клавишу для управления Pandora?

1760
Calvin Fisher

Я бы хотел, чтобы клавиша воспроизведения / паузы на моей клавиатуре остановила / возобновила музыку в Pandora. Как я могу это сделать?

Это довольно хорошая клавиатура, и довольно распространенная, так что я думаю, кто-то должен знать, как. Моя конкретная модель это Natural Ergonomic Keyboard 4000.

3

2 ответа на вопрос

1
12hys

OpenPandora имеет привязки для клавиатуры Logitech G15. Я использовал его с моим G110 некоторое время назад, и он работал. Я не пробовал приложение с тех пор, как Pandora получила новый интерфейс HTML5, но оно того стоит.

Интересный проект. Он не компилировался для меня сразу из исходного кода - на самом деле это были библиотеки G15 - и, похоже, помимо этого потребовалось бы еще немного работы. Если бы только было время для этого! Я буду считать, что "не может быть сделано" сейчас ... Calvin Fisher 12 лет назад 0
1
Holistic Developer

I was a long-time user of OpenPandora, but I found that it stopped working a while back when Pandora redesigned their site. Since then I switched to using the Pandora One application.

A person named Philip has created an AutoHotKey script which he posted to his blog. To get this to work with the play/pause key, do the following:

  1. Download AutoHotKey and install it.
  2. Download the script from the blog post above.
  3. Using your favorite text editor, modify the pandoraone.ahk file as follows:

    Find the block with the following code:

    ; Ctrl-Win-Alt-Space, Pause/Resume Playing ^#!Space:: If DoesPandoraExist() { ControlSend,, ; PlayToggle } return 

    Then add the Media_Play_Pause key:

    ; Ctrl-Win-Alt-Space, Pause/Resume Playing ^#!Space:: Media_Play_Pause:: If DoesPandoraExist() { ControlSend,, ; PlayToggle } return 
  4. Start the Pandora One application.

  5. Double-click the pandoraone.ahk file.
  6. Now use either the Play/Pause button or the Ctrl-Win-Alt-Space combination to play/pause Pandora One.

If you want, you can also make use of the previous, next and stop keys on your keyboard if they exist. Just use the appropriate key definition and add it to the appropriate script block for the function you want to perform.

Also, you can have AutoHotKey re-compile your modified script into an .exe by right-clicking and selecting "Compile Script." This will update the pandoraone.exe file with your changes, which you could then call from a batch script, for example.