Author Topic: An autohotkey script for rating your songs faster  (Read 7561 times)

lnminente

  • Sr. Member
  • ****
  • Posts: 1049
(I didn't know where to post this, administrators feel free to move it to a better place)

I'm rating a lot of songs of my albums, and i thought i could write a script for doing it a bit faster.

Two options:
-Central click over the seek bar to move to that position in the next song.
-Press 1-5 leaving the mouse in the seek bar to rate the actual song and move to the next in that position.


It needs autohotkey http://www.autohotkey.com/download/

Copy the following code and save it as MB_RatingHelper.ahk

;Rating helper for MusicBee
;===========================
;First leave the cursor over the seek bar (progressbar) and later...
;-If you do a central click, it will move to the next song in that position.
;-If you push 1-5 keys, also in the numeric pad, it will rate the current song
;  and move to the next sont in the indicated position of the seek bar.
;
;===========================
;
;Function wich mutes, rates, move to the next file, unmutes and left click the
;mouse with the intention of seeking.
MBRateNext( Stars = "" )
{
Send ^!{v}
Send ^!{%Stars%}
Sleep 100
Send ^{n}
Sleep 250
Send ^!{v}
Send {LButton}
}

;Hotkeys for the keys 1-5===========================
#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
1::
MBRateNext(1)
return

#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
2::
MBRateNext(2)
return

#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
3::
MBRateNext(3)
return

#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
4::
MBRateNext(4)
return

#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
5::
MBRateNext(5)
return

;Hotkeys for the Numpad keys 1-5===========================
#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
Numpad1::
MBRateNext(1)
return

#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
Numpad2::
MBRateNext(2)
return

#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
Numpad3::
MBRateNext(3)
return

#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
Numpad4::
MBRateNext(4)
return

#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
Numpad5::
MBRateNext(5)
return

;===========================
;Central click in seek bar for moving to the next song in that position.
#IfWinActive, ahk_class WindowsForms10.Window.8.app.0.378734a
MButton::
Send ^!{v}
Send ^{n}
Sleep 250
Send ^!{v}
Send {LButton}
return
Last Edit: December 08, 2011, 08:40:31 PM by lnminente

boroda

  • Sr. Member
  • ****
  • Posts: 4618
(I didn't know where to post this, administrators feel free to move it to a better place)
Best place for this is 'How to' board.