Lyric Timer 3.0 [MM2]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

Lyric Timer 3.0 [MM2]

Postby trixmoto » Fri Jan 13, 2006 4:36 am

This script will read your lyrics tag and allow you to easily assign basic timestamps. This is useful if you wich to display your lyrics in MM using the folloing script: http://www.mediamonkey.com/forum/viewtopic.php?t=6755

An installer for this script can be found on my website.
Last edited by trixmoto on Sun Dec 02, 2007 6:22 pm, edited 2 times in total.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Postby trixmoto » Fri Jan 13, 2006 4:37 am

LyricTimer.vbs
Code: Select all
NEW CODE BELOW
Last edited by trixmoto on Tue Mar 07, 2006 11:55 am, edited 1 time in total.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Postby trixmoto » Fri Jan 13, 2006 4:37 am

LyricTimer2.vbs
Code: Select all
NEW CODE BELOW
Last edited by trixmoto on Tue Mar 07, 2006 11:55 am, edited 1 time in total.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Postby psyXonova » Fri Jan 13, 2006 5:20 am

Cool, well done mate....
:lol:
psyXonova
 
Posts: 785
Joined: Fri May 20, 2005 3:57 am
Location: Nicosia, Cyprus

lyrics

Postby Wallstreetwalker-unlogged » Wed Feb 22, 2006 1:44 pm

hey trix,

i got the installer from your beatiful new site :lol:
but i get an error

on starting (translated from dutch) i get
rule 17
sign 5
error: activeX- 'part' can't make object
-SongsDB.SDBApplication
code 0
url about:blank

i press enter and i get the GUI but when clicking on line 1, line 2 or so i get
line 20
sign 7
error: object required 'SDB'
code 0
url about:blank
:-?


any suggestions ?, also i can't find an installer for your inline lyrics on the website :o , but i'll search better later :roll:

thanks !
Wallstreetwalker-unlogged
 

Postby trixmoto » Thu Feb 23, 2006 4:20 am

This is a security issue. Because the script is connecting directly to MM you need to have a few security settings relaxed. In Internet Explorer, for your local settings you need to enable "Initialise and script ActiveX controls not marked as safe". Or possibly your antivirus-type software (ie. Norton) is blocking the action.

InlineLyrics is under "Scripts, On Play" on my website.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Postby Guest » Mon Feb 27, 2006 1:36 pm

Hello,

I'm trying this out for the first time as I have a few text lyrics for tracks. The hope is to then try out your Inline lyrics script, as it's exactly what I'd prefer to do, in MM, as well.

But I'm having a few problems at the first hurdle.

Like the previous poster, I was getting the security issue. Enabling in the Local zone, still had the problem, though.

So I (briefly) enabled the settings in the Internet zone. Which worked as far as the initial running of the script went. But when I clicked on the 'getpos#' link, the following error was returned:

Line: 20
Char: 7
Error: Object required: 'data'
Code: 0
URL: about:blank

Any ideas?

Can I also check with you on usage - presumably I click on the links to mark the timing of each line.

Got to get that far first, though.

Thanks, Trixmoto.
Guest
 

Postby trixmoto » Tue Feb 28, 2006 4:16 am

Yes, when you click on the link it will set that line's timestamp to be the current time.

I don't know why the data object could not be found. My initial thought would be security again as it is stored in MM so if the script is being refused access then it would not be able to find it.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Postby Guest » Tue Feb 28, 2006 7:24 am

I have line 20 in LyricTimer2.vbs as:

i = SDB.Player.CurrentSong.ID

It strikes me that the script isn't seeing the player and/or cannot connect to the player's counter. So the counter variables aren't running in the script for me - witnessed by the fact that the individual time counters on each line always show as [00:00.00]

I don't think it's a security issue. I've enabled everything I can, as a test, but the 'data' error persists.

I'm pre-supposing that the counters on each line should be visibly ticking over until I stop it with the link - and then the script loops to the next count etc.

Is there anything I can do? Or am I just unlucky? :(

Btw Thanks for replying.
Guest
 

Postby trixmoto » Tue Feb 28, 2006 11:46 am

When you are clicking on a link on the form you are running a vbscript function within the webpage being displayed. You need to right click hit "view source" and check out that line 20.

It appears that this is happening for me too, although it hasn't before. Presumably this is due to something that has changed with the beta release. Can a developer comment?
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Postby Guest » Tue Feb 28, 2006 1:18 pm

Trix,

I'm no expert on these things, but I'll offer as much support as I can.

When I viewed the source in the browser form, line 20 showed as:

data.Item("time"&i) = SDB.Player.PlaybackTime

NB Indent included.

Does that help? I have the whole output saved to a text file, if you'd like it posted.

One other bit of info:

When I close MM (after closing your script), I get the following COM Server Warning:

"There are still active COM objects in this application. One or more clients may have references to these objects, so manually closing this application may cause those client application(s) to fail."

I don't know whether that's relevant.

I also have a query as to why I have to enable script execution with ActiveX for the Internet zone (which suggests the browser element is operating as an external URL), rather than the Local zone which would be safer.

Any comments highly appreciated.
Guest
 

Postby Guest » Tue Feb 28, 2006 1:20 pm

Sorry, but the indent disappeared when I submitted the post!
Guest
 

Postby trixmoto » Wed Mar 01, 2006 4:27 am

The actual source is not really relevant. The problem is that the "data" object is not being properly extracted from MM. Either that or it's not being put there in the first place. I have installed an old version of MM and this script works, however on the latest beta it doesn't. It is obviously something that the developers have changed (probably improved!) to the ActiveX component. I will fix this soon and post an update.

I don't have any control over how the web component functions so I cannot change it's security zone. All I can do is use what's available to me! :)
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Postby Guest » Wed Mar 01, 2006 1:53 pm

Appreciated, Trix. :)

Maybe something's been uncovered here?

For Info: I'm currently using 2.5.2 RC1 (though I haven't had a lot of time recently to give it a good workout).

Looking forward to the update.

Thanks again.
Guest
 

Postby trixmoto » Tue Mar 07, 2006 11:57 am

All new and improved (version 2.0)! 8)

This is now a dockable panel which will refresh with the track that is playing. There is a loop function, save and revert. Timestamp error handling has been vastly improved too!

N.B. Installer on my website already! :)

:o NEW CODE BELOW :o
Last edited by trixmoto on Mon Mar 20, 2006 11:32 am, edited 1 time in total.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Next

Return to Need Help with Addons?

Who is online

Users browsing this forum: No registered users and 13 guests