am in need of a script

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: am in need of a script

by rovingcowboy » Wed Sep 28, 2005 3:17 pm

some info on how this jingle script works.


one.

it works.

two.

the songs or jingles will play and make one count on the play count.

three.

the next time the song or jingle starts the script changes the count back to zero. and the song adds the count back to one.


:P 8) so you will always see a playcount of one on the jingle or songs.

by psyXonova » Tue Sep 27, 2005 4:29 am

rovingcowboy wrote: oh that work around i said of adding the play count to -30000 for the jingle, we figured out that it would take 7.5 years of playing that jingle at 70 to 75 times a week before it would have climbed back to zero count.

and also figured that by that time i would have forgot how to get the count that low again? :lol:
Hahahaha lollllll :lol:

by rovingcowboy » Sun Sep 25, 2005 8:25 pm

well what they are, is really not jingles but this script is just the thing for jingles.

since i am not a internet streaming radio i don't have jingles. i have my computer playing playlists 15 hours out of every day then it stops unless it is a major holiday then i play it all day with holiday music to match that holiday.


but it is sent to the speakers of the computer. which happen to have an earphone plug in them. so i use that fm transmitter i posted the review of in the news and other stuff room under the thread for audio broadcasting from your computer. so i am the only one that gets the signal unless your with in 300 feet of my house and have a reciver that is as good as the car radios. which can pick it up 300 feet away. portable's and cheap home stereos might get it if they have a good antenna?

but the things i need to keep off the top 50 list is the program changing sound effect and the songs i have playing for nap time which is american indana meditation music (flutes and drums) boy that puts me out for the hour too.
then there are some radio interviews i got from some shows that are nice to hear once in awhile but not on the top 50. then i use sign on and off songs just incase someone is able to pick up the signal. and there are jukes or humor and concerts i play at set times doing the week. the whole thing is set up just like a radio station but with out commericals or news.

if i feel like it i even start up the djamp program and have a dj annouce the songs. but using that beta program is tricky as it is a winamp program.
(still waiting for don to try and fix the errors i told him about )

so i play anything in music from joe toto's songs " surfing the WWW " to Bing Crosby and to Nat king cole, or Ernst Tubb and Waylon jennings.
and even some old show tunes like Blue tail fly or big rock candy mountain. and even kiddy songs like the old gray mare and chim chimery just incase there are some of the neighbors that have kids listening to the signal.

i know they can pick it up as i had it on the wrong frequ.. once i used one that was already in use by a huge broadcast station. boy when my sound effects started playing i got lots of phone calls so i changed the freq. and said oops. :lol:

by Peke » Sun Sep 25, 2005 4:40 pm

;)

Rovingcowboy,
What types of Jingles you use? (Jingles, Masks, Addvertizements, Announcements, ...)

by rovingcowboy » Sun Sep 25, 2005 3:28 pm

well dang you cut that down a few kb's in the notepad.

8)

some of the locations of mine were very long lines very very long
about like adding all this in to one line.

by Peke » Sun Sep 25, 2005 5:42 am

OK here I'm Again.

Here is my solution:

Code: Select all

const SongType = "Jingle"
const Songtype2 = "Addvertize"

Sub ResetCounter
   if (SDB.Player.CurrentSong.Genre = Songtype) Or (SDB.Player.CurrentSong.Genre = Songtype2) then
      SDB.Player.CurrentSong.PlayCounter = 0
      SDB.Player.CurrentSong.UpDateDB
   end if

End Sub
Rovingcowboy,
only thing you need is that your all 19 songs put under Jingle Genre and it will be not included in Top Lists.

by rovingcowboy » Sun Sep 25, 2005 4:13 am

for some reason

unknown by me.

the script you did worked

but mine which i thought was just like yours did not?

mine must have had an extra space in it or a typo.

see i say in my sig i am not a programmer and i do try.

thanks for that fix on the first script posted here.

now i have found that i had more the one thing i needed this for.

so the script has 19 things it watches for to keep out of the top 50 and it works with all of them.

i did not remember i made that many things.
thanks again. 8)

oh that work around i said of adding the play count to -30000 for the jingle, we figured out that it would take 7.5 years of playing that jingle at 70 to 75 times a week before it would have climbed back to zero count.

and also figured that by that time i would have forgot how to get the count that low again? :lol:

by Guest » Sat Sep 24, 2005 7:40 am

that is what i tried but it did not work for me for some reason?

maybe i messed up some how which is very likely.

so i will try this code and see if it works.

but i am still not sure it likes having two different hard drives in the script?

still i will try this and let everyone know 8)

by psyXonova » Sat Sep 24, 2005 6:24 am

rovingcowboy wrote:Al_G

onkel_enno

the script works fine for my one effect.
Hmmm, maybe this will help you....

Code: Select all

const SongPath = "D:\Music\Jingle.mp3"
const SongPath2 = "D:\Music\Jingle2.mp3"

Sub ResetCounter
	if SDB.Player.CurrentSong.Path = SongPath then
		SDB.Player.CurrentSong.PlayCounter = 0
		SDB.Player.CurrentSong.UpDateDB
	end if

	if SDB.Player.CurrentSong.Path = SongPath2 then
		SDB.Player.CurrentSong.PlayCounter = 0
		SDB.Player.CurrentSong.UpDateDB
	end if
End Sub
If you need 3 files just add the constant and copy paste the if condition changing only the constant name

by rovingcowboy » Sat Sep 24, 2005 6:07 am

i also have found a work around that is kindof so simple it will make youre kindergarden kid say Duh daaaaaaaaaaaddddddddddyyyy where have you been under a rock.


the one i found is to use the play count changer script someone posted in the forum here that lets you zero out the count by selecting the song then clicking on the tools menu then on the script menu then on playcount incriments that will add or remove numbers from the count.

my work around was just simply go in to the script file edit the line that tells it how many counts to add or remove, and make it say -15000 then select the jingle in the playlist and click that link in the scripts menu then press the F 5 button to see the count go to - 15000 and repeat the steps to make it go to -30000

so that is a simple work around too. but when it plays up to zero again i will have to go back in and set it at the -30000 all over. so this script in this thread working with multiple hard drives and files would be the better way.

8)

by rovingcowboy » Sat Sep 24, 2005 5:54 am

Al_G
i have told rusty when i first got version 1 about 6 months after they changed the name to media monkey. that i wanted to buy it but i can not send money over the net. i need a snail mail address.

he said they would think about it but they are not posting one in the near future.

i never got one so i guess they did not want to do that.

so i stick with the free one. and just do my own file monitoring which takes some time but atleast i got it done the way i want. and media monkey is the best one for large or small media data bases.

" the monkey could say All your bases belong to me "

ha ha ha. that is a line from some cartoon or game character. for those that did not know.


onkel_enno

the script works fine for my one effect.

only i have two so i tried to make two copys and use them but it did not work and when i renamed all the stuff that inducates the name of the script in the ini file i got it to not crash monkey. but it did not change the count? it kept telling me there was an error in line one colume 19 when i checked that colume it is the letter for the hard drive.

since the second effect is on a different hard drive then monkey i think it does not like having to go to another hard drive. and the songs according to befound by this script need to be on the same drive as the monkey and the script.

so is there some way to make it use any harddrive locations for other then the hard drive that the monkey is on?

by Al_G » Sat Sep 24, 2005 2:36 am

rovingcowboy wrote:OH

Okay Peke I kept reading it and i got the trick work around.

but the only thing is i am using the free version of meida monkey and can not edite the autoplaylists. so the top 50 list in mine just plays the top 50 on what ever options are set up by the monkey :D
Keith!

Dude, you gotta get the gold version! Autoplaylists and file monitoring rock!!
If you can afford it and if you feel their efforts are worth it, Jiri and the rest of the MM development group deserve the financial contribution.

by Peke » Fri Sep 23, 2005 4:27 pm

Simple but efficient.
There is a few things I'll change, but this is good start.

by rovingcowboy » Fri Sep 23, 2005 4:12 pm

OH

Okay Peke I kept reading it and i got the trick work around.

but the only thing is i am using the free version of meida monkey and can not edite the autoplaylists. so the top 50 list in mine just plays the top 50 on what ever options are set up by the monkey :D

by rovingcowboy » Fri Sep 23, 2005 4:07 pm

thanks for that Peke but i still cant make heads or tails out of that simple little trick?
:o

thanks for the script onkel_enno

will get it in the other computer as soon as i get off line.

8)

Top