gmusicbrowser Forum

Main board => Questions => Topic started by: helloindustries on December 24, 2010, 21:20:58

Title: set song rating via command/Keyboard shortcut using arguments
Post by: helloindustries on December 24, 2010, 21:20:58
Looking through the list of remote commands, i notice i can set the rating with a remote command, however, i'm not sure how exactly i need to set the commands to do this.

gmusicbroswers -cmd SetSongRating is the command, but what else to i need to add to it?

Ideally, i'd like to set a number of 20% increments to various keys, or even be able to simple increase or decrease the rating by 20 using, say; ctrl+keypad+ & ctrl+keypad-
Title: Re: set song rating via command/Keyboard shortcut using arguments
Post by: Quentin Sculo on December 27, 2010, 22:46:37
to set the rating to 80% :
Code: [Select]
gmusicbrowser -cmd "SetSongRating(80)"
The quotes are only needed so that the parenthesis are not interpreted by the shell, when configuring a global shortcut, you may need to NOT use the quotes to make it work.

I've just added in git the possibility of increasing/decreasing the rating by using + and - :
Code: [Select]
gmusicbrowser -cmd "SetSongRating(+20)"
I plan to redesign the command system after the next "stable" version.
Title: Re: set song rating via command/Keyboard shortcut using arguments
Post by: helloindustries on December 27, 2010, 22:49:34
to set the rating to 80% :
Code: [Select]
gmusicbrowser -cmd "SetSongRating(80)"
The quotes are only needed so that the parenthesis are not interpreted by the shell, when configuring a global shortcut, you may need to NOT use the quotes to make it work.

I've just added in git the possibility of increasing/decreasing the rating by using + and - :
Code: [Select]
gmusicbrowser -cmd "SetSongRating(+20)"
I plan to redesign the command system after the next "stable" version.

As ever; Thank you :)
In my mere 9 or 10 months of using Linux, you're the most responsive developer.