AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Global hotkeys for J.River Media Center

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
FatZgrED



Joined: 19 Oct 2008
Posts: 7
Location: Kielce, Poland

PostPosted: Tue Aug 25, 2009 9:41 pm    Post subject: Global hotkeys for J.River Media Center Reply with quote

I've been searching for this so long, I wrote this myself.
Global hotkeys for J.River Media Center http://www.jrmediacenter.com/download.html can be done by:
1) command line ie. mc13.exe /command play
executing command >6 times repeatedly causes MC to crash
2)COM
like on wiki page, haven't tried
3)Send message
Method I used, quite reliable
4)Sending hotkeys to MC window
5)Remapping keys for media keys
^p::Media_Play
Update
6)Trough editing XML
[url] http://wiki.jrmediacenter.com/index.php/User_Defined_Global_Keyboard_Shortcuts[/url]

Code:
;*** Num Off   
   ;*** Rating Currently playing track
      NumpadDel & NumpadEnd::      mcmsg(10023,16777217)
      NumpadDel & NumpadDown::   mcmsg(10023,16777218)
      NumpadDel & NumpadPgDn::   mcmsg(10023,16777219)
      NumpadDel & NumpadLeft::           mcmsg(10023,16777220)
      NumpadDel & NumpadClear::   mcmsg(10023,16777221)
   ;*
   ;*** Playback
      NumpadEnd::   mcmsg(10004,16777216,400) ;Previous
      NumpadDown::   mcmsg(10002,16777216,100) ;Stop
      NumpadPgDn::   mcmsg(10003,16777216,400) ;Next
      NumpadLeft::   mcmsg(10009,16777216,100) ;REW
      NumpadClear::   mcmsg(10000,16777216,100) ;Pause
      NumpadRight::   mcmsg(10008,16777216,100) ;FF
      NumpadUp::   mcmsg(10001,16777216,100) ;Play
      NumpadDel & NumpadAdd::   mcmsg(10018,16777224,100) ;VolumeUp 8
      NumpadDel & NumpadSub::   mcmsg(10019,16777224,100) ;VolumeDown 8
   ;*   
;*
mcmsg(wparam,lparam,stime=0) 
{

   WinGet, mjhwnd,id,ahk_class MJFrame
   If mjhwnd !=
      SendMessage, 33768, %wparam%,%lparam%,,ahk_id %mjhwnd%
   Else
   {
      RegRead,MCPath,HKLM,SOFTWARE\J. River\Media Core\Installations\Media Center 13,Path
      Run, %MCPath%\Media Center 13.exe
   }

   Sleep %stime% ; to slow things down
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group