Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch sounds.  (Read 23070 times)

0 Members and 1 Guest are viewing this topic.

Two-eyes



    Intermediate
  • Thanked: 4
    Re: Batch sounds.
    « Reply #15 on: September 18, 2009, 06:52:01 AM »
    dangit....didn't come to mind...silly me

    Thanks :)
    Quote
    I believe the bushes in my yard will BURN before God picks up a PC to send a message


    Boozu

      Topic Starter


      Hopeful

      Thanked: 9
      • Yes
      • Yes
    • Certifications: List
    • Experience: Familiar
    • OS: Windows 10
    Re: Batch sounds.
    « Reply #16 on: September 18, 2009, 06:52:37 AM »
    Ok well this is how I did a simple s.o.s.
    Code: [Select]
    @echo off

    echo 
    PING 1.1.1.1 -n 1 -w 1000 >NUL
    echo 
    PING 1.1.1.1 -n 1 -w 1000 >NUL
    echo 
    PING 1.1.1.1 -n 1 -w 1000 >NUL
    echo 
    echo 
    PING 1.1.1.1 -n 1 -w 1000 >NUL
    echo 
    echo 
    PING 1.1.1.1 -n 1 -w 1000 >NUL
    echo 
    echo 
    PING 1.1.1.1 -n 1 -w 1000 >NUL
    echo 
    PING 1.1.1.1 -n 1 -w 1000 >NUL
    echo 
    PING 1.1.1.1 -n 1 -w 1000 >NUL
    echo 

    So copy that to a batch file and play it. I hope no problems come up because of the copy past over the web.
    Don't worry about it.  If it's not good at stock, then it's not good.


    Two-eyes



      Intermediate
    • Thanked: 4
      Re: Batch sounds.
      « Reply #17 on: September 18, 2009, 06:57:04 AM »
      Thanks for the code :). (but i still don't know how to interpret morse...to Google)

      At S.T.:
      Code: [Select]
      c:\>sleep /?

      Arguments are: Sleep <seconds>

      www.tricerat.com

      Two-Eyes %
      Quote
      I believe the bushes in my yard will BURN before God picks up a PC to send a message


      Boozu

        Topic Starter


        Hopeful

        Thanked: 9
        • Yes
        • Yes
      • Certifications: List
      • Experience: Familiar
      • OS: Windows 10
      Re: Batch sounds.
      « Reply #18 on: September 18, 2009, 07:04:17 AM »
      Well it is supposed to be interpreted as ...---... dot dot dot dash dash dash dot dot dot that is S O S as in I NEAD HELP!!! Even is different countries have a different code I think SOS is the same. I don't think it is any different though. Maby if the language uses non standard English symbols.
      Don't worry about it.  If it's not good at stock, then it's not good.


      Two-eyes



        Intermediate
      • Thanked: 4
        Re: Batch sounds.
        « Reply #19 on: September 18, 2009, 07:15:59 AM »
        ahhh got it.  I thought that the space between the beeps mattered, but the beeps themselves are the letters.  thanks, looking forward for other :)

        Two-Eyes %
        Quote
        I believe the bushes in my yard will BURN before God picks up a PC to send a message


        Salmon Trout

        • Guest
        Re: Batch sounds.
        « Reply #20 on: September 18, 2009, 07:17:37 AM »
        Thanks for the code :). (but i still don't know how to interpret morse...to Google)

        At S.T.:
        Code: [Select]
        c:\>sleep /?

        Arguments are: Sleep <seconds>

        www.tricerat.com

        Two-Eyes %

        There are various programs called "sleep.exe" around on the Web. The one I use is the official Microsoft version in the Windows Server 2003 Resource Kit, available here:

        http://www.microsoft.com/Downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en#QuickInfoContainer

        Lots of other goodies in the Reskit.

        After installation, (as it says in the "Instruction" section on that page, under the list of programs), the programs are located in the %Program Files%\Windows Resource Kits\Tools folder.

        Boozu

          Topic Starter


          Hopeful

          Thanked: 9
          • Yes
          • Yes
        • Certifications: List
        • Experience: Familiar
        • OS: Windows 10
        Re: Batch sounds.
        « Reply #21 on: September 18, 2009, 07:25:39 AM »
        Salmon Trout (love you name fish fish) that is an add-on more or less and unless all users have it it wont work properly. I like using the dos comands that are built in. The sleep and whatever other comands that are added are nice but then you run into compatibility issues.
        Don't worry about it.  If it's not good at stock, then it's not good.


        TheHoFL



          Intermediate

          Thanked: 5
          Re: Batch sounds.
          « Reply #22 on: September 18, 2009, 12:39:33 PM »
          Hmmm... i got the beeping to work. I simply copied the following from the forum post and pasted it into my bat file and saved.

          Code: [Select]
          echo 

          ...never mind ... i didn't notice the second page ... it's been a LOOONNG week.  :-[
          All your dreams can come true if you have the courage to pursue them.  - Walt Disney

          Helpmeh



            Guru

          • Roar.
          • Thanked: 123
            • Yes
            • Yes
          • Computer: Specs
          • Experience: Familiar
          • OS: Windows 8
          Re: Batch sounds.
          « Reply #23 on: September 19, 2009, 08:18:22 AM »
          Use Ping as an almost replacement to sleep.

          Ping localhost -n (time in seconds) -w 1000 > nul
          Where's MagicSpeed?
          Quote from: 'matt'
          He's playing a game called IRL. Great graphics, *censored* gameplay.

          macdad-



            Expert

            Thanked: 40
            Re: Batch sounds.
            « Reply #24 on: September 19, 2009, 09:25:23 AM »
            ^G as I have found can only be added to a Batch file when copy con is used, notepad and EDIT cannot add ^G to a batch.

            As far as sending different beep frequencies to the speakers they're a number of ways to do this:

            1.Write a VB console app that can accept a frequency and duration that would output(I have one that might work)
            2.Use a third-party utility for the job(Heres a good list: Link)

            Hope this helps
            ,Nick(macdad-)
            If you dont know DOS, you dont know Windows...

            Thats why Bill Gates created the Windows NT Family.

            Helpmeh



              Guru

            • Roar.
            • Thanked: 123
              • Yes
              • Yes
            • Computer: Specs
            • Experience: Familiar
            • OS: Windows 8
            Re: Batch sounds.
            « Reply #25 on: September 19, 2009, 09:41:33 AM »
            Echo CTRL+G (shows ^G)> "%userprofile%\Desktop\beep.bat"

            Then modify beep.bat to your purposes.
            Where's MagicSpeed?
            Quote from: 'matt'
            He's playing a game called IRL. Great graphics, *censored* gameplay.

            billrich

            • Guest
            Re: Batch sounds.
            « Reply #26 on: September 19, 2009, 11:30:22 AM »
            Echo CTRL+G (shows ^G)> "%userprofile%\Desktop\beep.bat"

            Then modify beep.bat to your purposes.

            That is pretty good Helpmeh.  Who told you about it?

            Why do I get this one error?:
            '' is not recognized as an internal or external command, operable program or batch file.

            C:\>Echo ^G  >> beep.bat

            C:\>Echo ^G  >> beep.bat

            C:\>Echo ^G  >> beep.bat

            C:\>beep

            C:\>
            '' is not recognized as an internal or external command,
            operable program or batch file.

            C:\>
            '' is not recognized as an internal or external command,
            operable program or batch file.

            C:\>
            '' is not recognized as an internal or external command,
            operable program or batch file.

            C:\>
            '' is not recognized as an internal or external command,
            operable program or batch file.

            C:\>

            Salmon Trout

            • Guest
            Re: Batch sounds.
            « Reply #27 on: September 19, 2009, 11:46:53 AM »
            The internal speaker has not been a standard item of PC hardware for some years; it is considered "legacy", like floppy and serial/parallel ports. My little Shuttle and my two Dell Optiplexes don't have them, so if I want beeps I have to play around with WAVs and use external speakers.

            BC_Programmer


              Mastermind
            • Typing is no substitute for thinking.
            • Thanked: 1140
              • Yes
              • Yes
              • BC-Programming.com
            • Certifications: List
            • Computer: Specs
            • Experience: Beginner
            • OS: Windows 11
            Re: Batch sounds.
            « Reply #28 on: September 19, 2009, 12:10:51 PM »
            That is pretty good Helpmeh.  Who told you about it?

            Why do I get this one error?:
            '' is not recognized as an internal or external command, operable program or batch file.

            C:\>Echo ^G  >> beep.bat

            C:\>Echo ^G  >> beep.bat

            C:\>Echo ^G  >> beep.bat

            C:\>beep

            C:\>
            '' is not recognized as an internal or external command,
            operable program or batch file.

            C:\>
            '' is not recognized as an internal or external command,
            operable program or batch file.

            C:\>
            '' is not recognized as an internal or external command,
            operable program or batch file.

            C:\>
            '' is not recognized as an internal or external command,
            operable program or batch file.

            C:\>

            but of course! Control-G isn't a valid command.

            you could- go this though:

            Code: [Select]
            echo echo ^G>>test.bat

            of course for ^G you press Control-G.

            if memory serves it is the ASCII "bell" code, which I was originally intended mostly for printers, which would make the bell to call attention when they needed paper or something of that sort. (although in reality I found DOS had a habit of freezing if the Printer encountered difficulties)

            Oops... actually, not printers, but early electric typewriters... well, and printers.
            I was trying to dereference Null Pointers before it was cool.

            Boozu

              Topic Starter


              Hopeful

              Thanked: 9
              • Yes
              • Yes
            • Certifications: List
            • Experience: Familiar
            • OS: Windows 10
            Re: Batch sounds.
            « Reply #29 on: September 19, 2009, 12:21:41 PM »
            billrich: You have to do the ^G through the comand prompt window for it to do anything.

            Salmon Trout: the built in one may not be standard but if the pc has any speakers then you will hear something.
            Don't worry about it.  If it's not good at stock, then it's not good.