Thread: How do I....

Results 1 to 4 of 4
  1. #1
    ashleylee1993's Avatar
    Join Date
    Oct 2014
    Gender
    female
    Posts
    7
    Reputation
    10
    Thanks
    1

    How do I....

    I have a form completely written out for a calculator.
    I want the program to play audio if the calculator gets a specific answer.
    Does anyone know how I would do this?

  2. #2
    Ahsankamal's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    104
    Reputation
    10
    Thanks
    40
    My Mood
    Fine
    you are actually saying that the answer play audio?

  3. #3
    Tools4Gamers's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    Portugal
    Posts
    14
    Reputation
    10
    Thanks
    0
    Well it's just write a conditional code that's when an input by the client user is === to what you desire -> Add an HTML AudioFile and activates it right away.

  4. #4
    Valmolr's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    2
    If you are using html and javascript you can put an audio in the html like:
    Code:
    <audio id="audiohitmarker" src="mp3 url" style="display:none;" type="audio/mpeg"></audio>
    And then with a conditional as Trools4Gamers says you launch the audio with javascript:
    Code:
    if(number === 2){
    document.getElementById("audiohitmarker").play();
    document.getElementById("audiohitmarker").volume = 0.2;
    }

Similar Threads

  1. how about Tantra Online Game
    By scoutranger in forum General Gaming
    Replies: 2
    Last Post: 09-25-2018, 06:57 AM
  2. How many people on this forum Play WoW?
    By RebornAce in forum General
    Replies: 27
    Last Post: 12-31-2009, 05:27 PM
  3. How to Use Tsearch
    By wardo1926 in forum Hack Requests
    Replies: 5
    Last Post: 12-18-2007, 09:24 PM
  4. How to get Perl
    By shercipher in forum Programming
    Replies: 2
    Last Post: 01-02-2006, 11:28 PM
  5. How To Brute Force
    By Flawless in forum Game Hacking Tutorials
    Replies: 0
    Last Post: 01-01-2006, 05:01 PM