If InStr(rating, lsd) Then
rating = Left(rating,InStr(rating, lsd)-1)
End if
This should work no matter what locale is used. Formatnumber will use the correct locale and rating is always a double.
To test it I've changed my decimal seperator to |...and it worked!
[EDIT]Ups. You deleted your post. Do you have a different solution? So we will see.[/EDIT]
I deleted my post because I'd come up with a very similar idea myself. Although I'm not using the FormatNumber, I'm just convert 1.1 into a string which uses the locale and then extracting the middle character. I works for me with [.] and [,] so hopefully this will fix a few people's problems. Thanks for your help!
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
First of all, I am a HUGE MonkeyRok fan. My monkey would be downright naked without it!
Recently all the text in the MonkeyRok panel is in a tiny font. I must have played with a setting somewhere, but I didn't consciously change it! All other text in MM is the same as always.
I have tried changing Rok's skin but that doesn't help. I'm assuming Rok is pulling the font size from somewhere I'm not thinking of. Could someone illuminate me. It's probably simple and right in front of my face!
This could be the IE font size, which can be change in the View menu bar to values like small, medium and large.
The font size can also be changed in the skin.css file in the folder of the skin you are using. This script was designed (by oldskool73) to be as customisable as possible so all the visual settings can be changed in these style sheets.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
For anyone else having trouble with MonkeyRok giving a script error, try the following:
Right-click the MediaMonkey exe file and select properties. On the Security tab select edit, accept the usual Windows "do you really want to let me do this" warning then, for your user account, set your permission to full access.
I absolutely love the last.fm integration - I think I suggested the similar artist thing, but integrating it with how many albums/tracks by similar artists you have in your library is just genius.
Also very very happy about the advanced options for what to do with any listed track - right click and select how you want it to play.
They should make this part of MM3 and pay you for this.
New version (1.3) is now available from my website. Changes include...
- Fixed "id is null" error on context menu at the very top
- Fixed "expecting object xml" error if last.fm uncontactable
- Added more fields to the extra information mask
- Fixed ratings not working in some locales (thanks to SHR)
- Added options to play menu for viewing album and artist
- Added links to similar artists in your library for viewing
- Moved similar artists into a separate panel with new options
- Added option to get recommended albums from Last.Fm
The list of recommended albums is Last.Fm's list of albums by that artist, listed in order of popularity, only showing the ones that you do not have.
I've looked at the Wikipedia report but there is just too much text to display and processing the report to remove Wikipedia's own tabs takes too long, so I don't think this is a viable option.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.