Cue Reader 5.6 - Updated 20/07/2014
-
- Posts: 1
- Joined: Sun May 27, 2012 4:12 am
Re: Cue Reader 5.5 - Updated 07/07/2012
Hey Trix, thanks for all the great work. I've got a question about the script though.
I use a portable install of MM4. Your script works fine in that the cue panel displays perfectly, highlights the correct track when changing to next etc. The problem is that when I click the track number it doesn't seek the relevant place in the file.
I'm wondering if it's something to do with security settings and allowing vbscript but I might be wrong - any ideas? All help appreciated!
I use a portable install of MM4. Your script works fine in that the cue panel displays perfectly, highlights the correct track when changing to next etc. The problem is that when I click the track number it doesn't seek the relevant place in the file.
I'm wondering if it's something to do with security settings and allowing vbscript but I might be wrong - any ideas? All help appreciated!
Re: Cue Reader 5.5 - Updated 07/07/2012
Hmmm, I've just tried this and it works fine for me. Do you get any ActiveX warnings at all?
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Re: Cue Reader 5.5 - Updated 07/07/2012
Thanks,
This works greats. I couldn't get 5.4 to work at all but thins one installed and worked right off the bat. Thanks a lot!
This works greats. I couldn't get 5.4 to work at all but thins one installed and worked right off the bat. Thanks a lot!
-
- Posts: 8
- Joined: Wed Aug 17, 2011 12:53 pm
- Location: London
Re: Cue Reader 5.5 - Updated 07/07/2012
Just a note on this great script.
I was having lots of problems with "unknown command" errors and strange characters supposedly appearing in my CUE files.
After a bit of fiddling in notepad++ I found that converting the character encoding from UTF to ANSI or vice versa, the errors would stop.
I also found a method for doing this as a batch process here
I was having lots of problems with "unknown command" errors and strange characters supposedly appearing in my CUE files.
After a bit of fiddling in notepad++ I found that converting the character encoding from UTF to ANSI or vice versa, the errors would stop.
I also found a method for doing this as a batch process here
Re: Cue Reader 5.5 - Updated 07/07/2012
I have found a way to read UTF8 files now, although VBScript doesn't handle them natively. I just need to figure out if I can determine whether the file is UTF8 or ASCII now 

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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Re: Cue Reader 5.5 - Updated 07/07/2012
I bumped into a problem with an UTF-8 file and found this small script that checks for unicode using the so-called "BOM marker" here: http://stackoverflow.com/questions/1410 ... code-files I included this check in the vbs but unfortunately it still does not read certain files "UTF-8 without BOM" correctly. Seems you have to use the ADODB.Stream instead to read those but that requires some additional recoding.trixmoto wrote: I just need to figure out if I can determine whether the file is UTF8 or ASCII now
If you like I can send or post the modified script. I improved some other things too (at least i think so

I wanted to post the modded script and css just for people to try out but read your topic "respect other peoples work" - which I do - just in time..

Anyway another big thumbs up from a happy cuereader user. I am a programmer myself too - though I don't usually work with vbs - so I might be able to help out with things.
Re: Cue Reader 5.5 - Updated 07/07/2012
Thank you, I've been looking to do something like this, but have also struggled with the lack of BOM markers. I'm still looking for a way to work out whether then file is UTF8 or not, so that I can read it appropriately.
Feel free to post your modified script so that other people can benefit from your work, you just need to make sure you say that it's a modified version of this script. I'll take a look and see what I can build back into the original script, with appropriate acknowledgement, of course
Feel free to post your modified script so that other people can benefit from your work, you just need to make sure you say that it's a modified version of this script. I'll take a look and see what I can build back into the original script, with appropriate acknowledgement, of course

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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Re: Cue Reader 5.5 - Updated 07/07/2012
Allright, here it is.
http://www.mediafire.com/?bynwgbao4b14zxf
Files:
CueReader.vbs - MODIFIED vbs script <= !!
CueReader.css - modified css
bgheader.png - used in css and vbs
Silence 2004.flac.cue - offending cue file
FileToUnicode.exe - homemade .NET exe. explanation below
Program.cs - C# sourcecode for exe.
In case you are wondering what an .exe is doing in there, here's the story:
I still haven't found a way to detect unicode correctly in vbs. This article http://www.codeproject.com/Articles/172 ... going-Text looked promising, however I have no idea how to call the method IMultiLang2.DetectInputCodepage from vbs. Plus, when I checked the cue file, the chosen "best encoding" was still not the right one.
In the end I found that in .NET you can make the StreamReader test the encoding using the actual contents. That is where the exe comes in, it preprocesses all .cue files and creates a new CueReader.cue file with encoding Encoding.Unicode. This file then can be read in vbs and can handle any character correctly. (I hope.)
I commented this and also other changed bits in CueReader.vbs with '* so you can see the changes.
Now it's very late here so I'll leave it at this. To anyone trying it out: this code was tested pretty much only with the included .cue file and of course all other correct .cue files on my music drive. It seems to handle all files correctly now.. but use at your own risk.
http://www.mediafire.com/?bynwgbao4b14zxf
Files:
CueReader.vbs - MODIFIED vbs script <= !!
CueReader.css - modified css
bgheader.png - used in css and vbs
Silence 2004.flac.cue - offending cue file
FileToUnicode.exe - homemade .NET exe. explanation below
Program.cs - C# sourcecode for exe.
In case you are wondering what an .exe is doing in there, here's the story:
I still haven't found a way to detect unicode correctly in vbs. This article http://www.codeproject.com/Articles/172 ... going-Text looked promising, however I have no idea how to call the method IMultiLang2.DetectInputCodepage from vbs. Plus, when I checked the cue file, the chosen "best encoding" was still not the right one.
In the end I found that in .NET you can make the StreamReader test the encoding using the actual contents. That is where the exe comes in, it preprocesses all .cue files and creates a new CueReader.cue file with encoding Encoding.Unicode. This file then can be read in vbs and can handle any character correctly. (I hope.)
I commented this and also other changed bits in CueReader.vbs with '* so you can see the changes.
Now it's very late here so I'll leave it at this. To anyone trying it out: this code was tested pretty much only with the included .cue file and of course all other correct .cue files on my music drive. It seems to handle all files correctly now.. but use at your own risk.

Re: Cue Reader 5.5 - Updated 07/07/2012
Thank you for posting this, I'll take a look when I get a chance.
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Re: Cue Reader 5.5 - Updated 07/07/2012
"Be strict in what you emit, and flexible in what you accept" is a good rule to code by.
Re: Cue Reader 5.5 - Updated 07/07/2012
Um, thanks 

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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Re: Cue Reader 5.5 - Updated 07/07/2012
i need help please i load an mp3 that contains the .cue and it prompts a ActiveX message saying " An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?" I Select Yes and it just disappears. What am i doing wrong, and how do I fix this issue? Please help anyone. Thanks.
Re: Cue Reader 5.5 - Updated 07/07/2012
jj11 wrote:i need help please i load an mp3 that contains the .cue and it prompts a ActiveX message saying " An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?" I Select Yes and it just disappears. What am i doing wrong, and how do I fix this issue? Please help anyone. Thanks.
Nevermind i have solved the issue. I have my Advanced System Care Pro on Turbo mode and it has disabled some features enabling Active X i'm assuming. I'm going to disable my Turbo mode from disabling this and hopefully it will work from there.
Re: Cue Reader 5.5 - Updated 07/07/2012
Does this script support lossless FLAC and APE files? That's mostly the file types that mostly use CUE.
When I play a FLAC file with a CUE file in the directory, I get the popup asking me to allow ActiveX, and the CUE popup briefly appears right above the playlist. But then it disappears and nothing happens.
This is the only thing keeping me from using MM as my sole audio player. I hope Ventis adds it as an official feature soon.
When I play a FLAC file with a CUE file in the directory, I get the popup asking me to allow ActiveX, and the CUE popup briefly appears right above the playlist. But then it disappears and nothing happens.
This is the only thing keeping me from using MM as my sole audio player. I hope Ventis adds it as an official feature soon.
Re: Cue Reader 5.5 - Updated 07/07/2012
For ActiveX warnings see: http://www.mediamonkey.com/forum/viewto ... =2&t=14405
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)