Jump to content

music


Recommended Posts

well i know about soundplay i want to make it so that the music is looped so that it replays over and over

<{POST_SNAPBACK}>

make a adlib that uses timer* funcs to restart the sound after it's done playing?

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

Guest BL@(K-R34P3R

I'm not saying this to be mean or anythiing, but people around here really don't like it unless you attempt it yourself first. Open up the helpfile, and look for the SoundPlay() function, and for the loops. For While, etc...

Link to comment
Share on other sites

oh nevermind.... this wouldn't do what you want, not beyond two loops, then it'd keep restarting the music.

Larry, you rock.

$timer = TimerInit()
$length = 3 * 1000 * 60;assuming the song is exactly 3 minutes long
SoundPlay("jeapardy.mp3")
AdlibEnable("musicloop")
;script asking questions
AdlibDisable()

func musicloop()
   if TimerDiff($timer) > $length
      SoundPlay("jeapardy.mp3")
   EndIf
EndFunc

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

If $CMDLINE[0] = 1 And $CMDLINE[1] == "/jeopardy" Then Jeopardize()

can u explain what that does plz?

My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
Link to comment
Share on other sites

If $CMDLINE[0] = 1 And $CMDLINE[1] == "/jeopardy" Then Jeopardize()

can u explain what that does plz?

<{POST_SNAPBACK}>

well, it does something differently if you have those values set... how would those values be set you ask? check this out, under command line parameters

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

ok well larry i tried wat u put but its not working right... later tonite ill send u the script cause im at school right now but the song is a .mid its located at c:\jeopardy.mid as of right now i have it so that after each question it starts the music until u press ok then it goes to the second question thing and restarts the music again so its like waiting music it plays until u are finished with doing the calculations... wat i want it to do is play the entire time not having to restart after everyone...

Link to comment
Share on other sites

here is kinda how it goes... needs to be compiled...

If $CMDLINE[0] = 1 And $CMDLINE[1] == "/jeopardy" Then Jeopardize()

;regular script goes here...
;
;Run Jeopardy music like...
Run('"' & @SCRIPTFULLPATH & '" /jeopardy')
WinWait("Jeopardy Music")
;
;ask questions here...
;
;kill music
WinClose("Jeopardy Music")

Func Jeopardize()
   AutoItWinSetTitle("Jeopardy Music")
   While 1
      SoundPlay("jeopardy.mp3",1)
      Sleep(1000)
   Wend
EndFunc

<{POST_SNAPBACK}>

ok here is my code... the games pretty pathetic but im limited on my imagination lolĀ  anyway here

<{POST_SNAPBACK}>

I believe that what Larry had meant was for you to put all of your questions in the area where ";ask questions here..." is. The music is handled by the app running itself a second time, in the background.

ps, you missed the closing [/ code] tag and that's why your post is malformed. :ph34r:

pps, that is the way Jeopardy works though, isn't it? they only play the music at the beginining of a question :(

Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...