Posts: 22
Joined: Aug 2008
Reputation:
0
Hello.
First, i would like to thank everyone for their time and effort making the best media player out there. No one mentioned, no one forgotten.
I really enjoy lyrics with my music, but i think it's complicated to get the lyrics on the screen. I would like to assign a button, say "D", to be my lyrics-button. That means, when i play a song and press "D" on my keyboard, the lyrics will automatically come up on the screen.
I guess that this means that you have to make a shortcut to C:\Program Files\XBMC\skin\MediaStream\extras\XBMC Lyrics\default.py but i do not have the skills to make this on my own.
Is this possible in any way?
Regards
H29
_HTPC_: Zalman HD XT 160 Plus incl. 7" LCD / Intel E8400 / Intel X-25 SSD / Gigabyte EG45M-DS2H / 4 GB Corsair DDR 800 mhz / 6TB HDD / ASUS XONAR DS / Microsoft LifeCam Cinema 720p / Logitec DiNovo Mini/ _LAPTOP_: Sony Vaio TZ31 / MTron 1.8" SSD / _TV_: Samsung 52" FullHD LCD / _RECIEVER_AND_SURROUND_: Harman Kardon 245 5.1 / _ROUTER_: DLink DIR-655 / _INTERNET_AND_ISP__ Telia 100/100mbit / _DOG_ Miniature Schnauzer
Posts: 328
Joined: Oct 2007
Reputation:
0
Anything is possible with XBMC.
I did the exact thing a few months back for my remote.
Edit the keymap.xml. Find the approriate section in which you want to add your button (Mymusic for example) then edit, or add the D (don't know if it's used already)
And then I used: XBMC.RunScript(q:\\scripts\xbmc lyrics\default.py) (this was on the xbox, I'm new to the windowsplatform, so the syntax for the path may be incorrect.)
Hope this helps you.
Posts: 22
Joined: Aug 2008
Reputation:
0
Thank you for your try, but i can't get it to work.
I edited the keymap.xml, so now, under MyMusicFiles it looks like this:
.........
<keyboard>
<space>Playlist</space>
<q>Queue</q>
XBMC.RunScript<d>C:\Program Files\XBMC\skin\MediaStream\extras\XBMC Lyrics\default.py</d>
</keyboard>
</MyMusicFiles>
Still, when i play a song and press D, nothing happens.
Regards
H29
_HTPC_: Zalman HD XT 160 Plus incl. 7" LCD / Intel E8400 / Intel X-25 SSD / Gigabyte EG45M-DS2H / 4 GB Corsair DDR 800 mhz / 6TB HDD / ASUS XONAR DS / Microsoft LifeCam Cinema 720p / Logitec DiNovo Mini/ _LAPTOP_: Sony Vaio TZ31 / MTron 1.8" SSD / _TV_: Samsung 52" FullHD LCD / _RECIEVER_AND_SURROUND_: Harman Kardon 245 5.1 / _ROUTER_: DLink DIR-655 / _INTERNET_AND_ISP__ Telia 100/100mbit / _DOG_ Miniature Schnauzer
Posts: 1,163
Joined: May 2008
Reputation:
7
Waffa
Posting Freak
Posts: 1,163
<d>XBMC.RunScript(C:\Program Files\XBMC\skin\MediaStream\extras\XBMC Lyrics\default.py)</d>
Should be like this.
Posts: 22
Joined: Aug 2008
Reputation:
0
Thank you so much Waffa. I missed that and when adjusted, it works like a charm!
Thank you all for contributing to XBMC!
Regards
H29
_HTPC_: Zalman HD XT 160 Plus incl. 7" LCD / Intel E8400 / Intel X-25 SSD / Gigabyte EG45M-DS2H / 4 GB Corsair DDR 800 mhz / 6TB HDD / ASUS XONAR DS / Microsoft LifeCam Cinema 720p / Logitec DiNovo Mini/ _LAPTOP_: Sony Vaio TZ31 / MTron 1.8" SSD / _TV_: Samsung 52" FullHD LCD / _RECIEVER_AND_SURROUND_: Harman Kardon 245 5.1 / _ROUTER_: DLink DIR-655 / _INTERNET_AND_ISP__ Telia 100/100mbit / _DOG_ Miniature Schnauzer
Posts: 407
Joined: Aug 2008
Reputation:
0
I have the same issue under windows:
Subtitels using a Keyboard and I want to map it to F11 but it does not work
Any sugestions? the script does work under the script menu
Keymap:
<f11>XBMC.RunScript(C:\WINXP\Program Files XP\XBMC\scripts\OpenSubtitles\default.py)</f11>
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
Thats my fault cause I hard coded F11 to switch full screen. Removed it in #16946 as alt+enter does the same.
Posts: 407
Joined: Aug 2008
Reputation:
0
I think is the hardcoding that was wrong. Cause F1-F10 work perfectly.
Thanks for the advice, I will try using insert when at home
Posts: 7,256
Joined: Nov 2008
Reputation:
121
Deliberate mistake? The line:
XBMC.RunScript<d>C:\Program Files\XBMC\skin\MediaStream\extras\XBMC Lyrics\default.py</d>
should be:
<d>XBMC.RunScript(C:\Program Files\XBMC\skin\MediaStream\extras\XBMC Lyrics\default.py)</d>
As you found, the keymap.xml does not exist until you create it. Strictly speaking you should call the file keyboard.xml not keymap.xml, though actually XBMC doesn't care what it's called and will read it anyway. If you enable debug logging, the log will tell you whether your keymap.xml is being read correctly and what XBMC does when you press d.
JR
JR
Posts: 36
Joined: Sep 2010
Reputation:
1
I added <a>RunScript(script.cu.lyrics)</a> to my keymap XML-file in the Visualisation-part, to bring up the CU Lyrics when pressing a. To my understanding this should work on all operating systems.