INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Easy Play/Pause from Keyboard  (Read 3393 times)

Otello

  • World Citizen
  • ***
  • Posts: 204
Easy Play/Pause from Keyboard
« on: March 27, 2014, 09:28:30 am »

OK, I'm officially umpaired with search engines; I mean, I cant believe this question has not been asked before. ;)

Is there a way to setup some easy player commands from keyboard?

for instance, I'd need something like:

Play/Pause = <Space Bar> 
Skip = <Right Alt>
Previous Track = <Left Alt>
Logged

AndrewFG

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3392
Logged
Author of Whitebear Digital Media Renderer Analyser - http://www.whitebear.ch/dmra.htm
Author of Whitebear - http://www.whitebear.ch/mediaserver.htm

Otello

  • World Citizen
  • ***
  • Posts: 204
Re: Easy Play/Pause from Keyboard
« Reply #2 on: March 27, 2014, 09:58:06 am »

Oh yes, this is what I'm looking for, thank Andrew. ;)

If I could ony write scripts...   :'(
Logged

mojave

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3732
  • Requires "iTunes or better" so I installed JRiver
Re: Easy Play/Pause from Keyboard
« Reply #3 on: March 27, 2014, 10:37:51 am »

If you have an Android phone you can use the free Gizmo app to control JRiver. There is JRemote for iOS.

You can just get a keyboard with media keys. They work with JRiver. I have a couple Logitech keyboards that I use. The K400 is very nice and has media keys across the top row of the keyboard.

You can also check out Theater View (Ctrl +4) or Display View (Ctrl +3). Display view uses the spacebar and arrow keys. You can use Tools > Options > General > Behavior to browse with Standard View and then Jump on Play to Theater View or Display View.

Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Easy Play/Pause from Keyboard
« Reply #4 on: March 27, 2014, 10:46:35 am »

for instance, I'd need something like:

Play/Pause = <Space Bar>  

Space Bar also does Play/Pause by default.

When the Player window is in the foreground anyway (including Display View and Playing Now).
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

mojave

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3732
  • Requires "iTunes or better" so I installed JRiver
Re: Easy Play/Pause from Keyboard
« Reply #5 on: March 27, 2014, 11:31:07 am »

Space Bar also does Play/Pause by default.

When the Player window is in the foreground anyway (including Display View and Playing Now).
I forgot that it works in standard view when in Playing Now.

However, in Playing Now in Theater View the spacebar restarts the current song. I still restart songs all the time accidentally in Theater View and don't understand the inconsistent behavior of the spacebar.
Logged

Otello

  • World Citizen
  • ***
  • Posts: 204
Re: Easy Play/Pause from Keyboard
« Reply #6 on: March 27, 2014, 11:36:04 am »

Space Bar also does Play/Pause by default.

When the Player window is in the foreground anyway (including Display View and Playing Now).

Yes Glynor, most of the times I use JR with JRemote and I'm very happy with this headless solution; I never bother about keyboard shortcuts since a router problem (i.e. no wifi), realizing I'd need something easier than Ctrl-P.

But I'm not sure I understand the quoted test (Language barrier here):

Do you mean Space Bar WILL DO Play/Pause, AFTER installing the script, or JR is performing yet Play/Pause with <space>?
In the second case I'm missing something ;)

Logged

kstuart

  • Citizen of the Universe
  • *****
  • Posts: 1955
  • Upgraded to MC22 Master using preorder discount
Re: Easy Play/Pause from Keyboard
« Reply #7 on: March 27, 2014, 01:16:10 pm »

If you search the MC18 Forum (probably for "pause" in the title), you will find a thread about setting up a key to do Pause from a client to JRiver Media Server.

Otello

  • World Citizen
  • ***
  • Posts: 204
Re: Easy Play/Pause from Keyboard
« Reply #8 on: March 27, 2014, 01:39:38 pm »

Glynor,

well, I'm missing something for sure, as the spacebar don't work for me in Theater or Display view, but it's not real problem as I don't feel comfortable with these views, I'm stick with Panes. ;)

I followed the instructions at http://wiki.jriver.com/index.php/User_Defined_Global_Keyboard_Shortcuts and successfully created a very simple file just for activating the Play/Pause, (I can't believe it worked at the first try ;) )


<MJRS version="1.0">
  <ACCELERATORS>
 <Entry Key="Space" Command="10000" Param="0" Global="1" />
  </ACCELERATORS> 
</MJRS>


Now, to create the Previous and Next key in ergonomic position, I'd need a different behavior for Left and Right Alt, but I'd say it's not possible.
Please tell me I'm wrong.  ;)
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Easy Play/Pause from Keyboard
« Reply #9 on: March 27, 2014, 02:07:18 pm »

Space bar works fine here for play/pause on a stock install of MC19 from both Stamdard View's Playing Now and Display View (full screen playback).

I dunno about theater view because I use my remote which sends the MCC commands explicitly via Windows Messages.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

mojave

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3732
  • Requires "iTunes or better" so I installed JRiver
Re: Easy Play/Pause from Keyboard
« Reply #10 on: March 27, 2014, 02:07:29 pm »

If you click Playing Now on the left while in Standard View with the panes, then the spacebar works for pause. It only works there because the spacebar is needed for searches, tagging, playlist naming, etc. while in the other views.

You can create a split view (View > Split View) and lock one of the views to always show Playing Now. The View > Split View > Lock View only shows up if you have more than one view. This lets you select your music in one pane and then switch to the Playing Now pane for playback and control.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Easy Play/Pause from Keyboard
« Reply #11 on: March 27, 2014, 02:09:54 pm »

If you click Playing Now on the left while in Standard View with the panes, then the spacebar works for pause. It only works there because the spacebar is needed for searches, tagging, playlist naming, etc. while in the other views.

Right. Otherwise it would be bad because you couldn't type spaces at all.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Otello

  • World Citizen
  • ***
  • Posts: 204
Re: Easy Play/Pause from Keyboard
« Reply #12 on: March 28, 2014, 08:29:43 am »

If you click Playing Now on the left while in Standard View with the panes, then the spacebar works for pause. It only works there because the spacebar is needed for searches, tagging, playlist naming, etc. while in the other views.


Well, this could be the best solution, but it's not working for me.  ?
(I tried with 2 different PCs in different location, home/office)

- I am in Standard View (Ctrl-1),
- I click on "Playing now" in the left bar,
- I start playing a track;
- then I try to use the spacebar to put in pause, but nothing happens.

Suggestions? What am I doing wrong?  ?

Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Easy Play/Pause from Keyboard
« Reply #13 on: March 28, 2014, 08:34:58 am »

Well, this could be the best solution, but it's not working for me.  ?
(I tried with 2 different PCs in different location, home/office)

- I am in Standard View (Ctrl-1),
- I click on "Playing now" in the left bar,
- I start playing a track;
- then I try to use the spacebar to put in pause, but nothing happens.

Suggestions? What am I doing wrong?  ?


for me it only works when i also click on the cover (the upperpart of playing now).

 :)
gab
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Easy Play/Pause from Keyboard
« Reply #14 on: March 28, 2014, 08:39:30 am »

Yes, the player window (where video shows, cover art, visualizations, etc) show must be active, not the file list.

With the file list active, space bar types a space (which would jump you to a track with a space at the head of the name field, I suppose).
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Easy Play/Pause from Keyboard
« Reply #15 on: March 28, 2014, 08:44:07 am »

Glynor,

well, I'm missing something for sure, as the spacebar don't work for me in Theater or Display view, but it's not real problem as I don't feel comfortable with these views, I'm stick with Panes. ;)

I followed the instructions at http://wiki.jriver.com/index.php/User_Defined_Global_Keyboard_Shortcuts and successfully created a very simple file just for activating the Play/Pause, (I can't believe it worked at the first try ;) )


<MJRS version="1.0">
  <ACCELERATORS>
 <Entry Key="Space" Command="10000" Param="0" Global="1" />
  </ACCELERATORS>  
</MJRS>


Now, to create the Previous and Next key in ergonomic position, I'd need a different behavior for Left and Right Alt, but I'd say it's not possible.
Please tell me I'm wrong.  ;)
why dont you get previous and next not to work. it should be possible.

 :)
gab

edit: i just made <Entry Key="Ctrl;Alt;right" Command="10003" Param="0" />
this uses the Alt Gr button (same as ctrl alt) with the right arrow for going to the next song
Logged

Otello

  • World Citizen
  • ***
  • Posts: 204
Re: Easy Play/Pause from Keyboard
« Reply #16 on: March 28, 2014, 08:48:14 am »

for me it only works when i also click on the cover (the upperpart of playing now).

 :)
gab

Bingo!

Thanks, it's working now ;)
Logged

Otello

  • World Citizen
  • ***
  • Posts: 204
Re: Easy Play/Pause from Keyboard
« Reply #17 on: March 28, 2014, 08:59:30 am »



Quote from: Otello
<MJRS version="1.0">
  <ACCELERATORS>
 <Entry Key="Space" Command="10000" Param="0" Global="1" />
  </ACCELERATORS> 
</MJRS>


why dont you get previous and next not to work. it should be possible.

 :)
gab

Well, for Previous and Next I'd need to use Left and Right Alt, but I cannot; I have to think to another couple of keys convenients for this purpose.

Anyway, I have a bigger problem with this script, that this way is not usable.
as noted by mojave, this way it's impossible to make any editing, so I tried to play with Param and Global; I tried Global = "0" and any allowed number for Param, but Spacebar is active in any situation...

Again: what am I doing wrong?
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Easy Play/Pause from Keyboard
« Reply #18 on: March 28, 2014, 09:05:29 am »

how about this


<MJRS version="1.0">


  <ACCELERATORS>
   <Entry Key="Ctrl;Alt;Space" Command="10000" Param="0" Global="1" />
    <Entry Key="Ctrl;Alt;right" Command="10003" Param="0" />
   <Entry Key="Ctrl;Alt;left" Command="10004" Param="0" />

  </ACCELERATORS>

</MJRS>

this uses the alt gr at the rightside of the spacebar together with the space or arrows for play/pause, previous and next


 :)
gab
Logged

Otello

  • World Citizen
  • ***
  • Posts: 204
Re: Easy Play/Pause from Keyboard
« Reply #19 on: March 28, 2014, 09:17:16 am »

Not bad gapie, I'll do this way, if I solve the focus problem. ;)

For instance, I tried this string for having the spacebar active only when Action Window is focused, but it's active in any situation (so it's not usable)...

   <Entry Key="Space" Command="10000" Param="64" />
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Easy Play/Pause from Keyboard
« Reply #20 on: March 28, 2014, 09:18:39 am »

Right.  Single-key hot keys won't work well because they're active whenever MC is in the foreground.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Easy Play/Pause from Keyboard
« Reply #21 on: March 28, 2014, 09:21:25 am »

Not bad gapie, I'll do this way, if I solve the focus problem. ;)

For instance, I tried this string for having the spacebar active only when Action Window is focused, but it's active in any situation (so it's not usable)...

   <Entry Key="Space" Command="10000" Param="64" />
that is not how it works.. the param is for something else.
it could be
<Entry Key="Space" Command="10000" Param="0" TranslateFlags="64" />

 :)
gab
Logged

Otello

  • World Citizen
  • ***
  • Posts: 204
Re: Easy Play/Pause from Keyboard
« Reply #22 on: March 28, 2014, 09:29:28 am »

Ah yes!

Thank you very much, it's working now.  ;D

Logged

Otello

  • World Citizen
  • ***
  • Posts: 204
Re: Easy Play/Pause from Keyboard
« Reply #23 on: March 28, 2014, 09:42:56 am »

P.S.

using TranslateFlags="1" the action is disabled in "edits, comboboxes, and other data entry controls"

I have to check better, but I'd say this way the single key command is usable.  ;D

Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Easy Play/Pause from Keyboard
« Reply #24 on: March 28, 2014, 10:44:27 am »

oh that is nice... maybe i use that too. since i hit the space sometimes, because it works that way with some other programs i use.

 :)
gab
Logged
Pages: [1]   Go Up