Search found 12 matches

by grotch
06 Aug 2016 03:45
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

I wasn't sure why you were using files to hold the names of the sound files and I incorporated them into the script itself. Sorry, I forgot to put the soundboard_settings.bat in here. With it you can modify which sounds should be played when using 1-9. I don't have an own website so don't be confus...
by grotch
05 Aug 2016 12:18
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

Are you saying this one-liner @start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "yey.mp3" --qt-start-minimized --play-and-exit works without any delay? Regards aGerman It has a 1-2 second delay, in that time you can't type in another command(thats what I don't un...
by grotch
05 Aug 2016 11:16
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

aGerman wrote:
The program has a litte annoying delay when you play a sound,
do you know why that is so?

Most likely because the VLC process has to be loaded before it can play a sound.

Regards
aGerman


I don't think that vlc is the problem,
because it worked fine earlier.

grotch
by grotch
05 Aug 2016 11:00
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

Hello, I think I'm finished. The program has a litte annoying delay when you play a sound, do you know why that is so? Here is my code: @echo off title Batch Soundboard MODE CON COLS=59 LINES=15 ::loading files :loading if not exist "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" ( if not ex...
by grotch
05 Aug 2016 09:26
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

Why did you use pushd and popd(I dont understand what they do)? H:\>pushd /? Stores the current directory for use by the POPD command, then changes to the specified directory. H:\>popd /? Changes to the directory stored by the PUSHD command. Thanks for the answer, I read that myself and didnt under...
by grotch
05 Aug 2016 09:06
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

Thanks, it works.
Why did you use pushd and popd(I dont understand what they do)?

foxidrive wrote:No, this is a good place to continue talking about your script.

Thanks for the answer.

grotch
by grotch
04 Aug 2016 13:00
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

Thanks, Im going to test that tomorrow.

grotch
by grotch
04 Aug 2016 08:50
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

Now I have another problem. I want to make an installer for my program, but it keeps closing right when I start it. I have the soundboard installed already, so it probably has a problem with the reinstall and uninstall part. @echo off :start if not exist "C:\Users\%username%\Documents\Soundboar...
by grotch
31 Jul 2016 13:52
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

I just read the VLC command-line help . Untested: start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "%sounds_path%%sound1%" --qt-start-minimized --play-and-exit Regards aGerman Thanks so much, it works. I looked for windows media player parameters and found out th...
by grotch
31 Jul 2016 12:57
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

aGerman wrote:You missed the percent signs around your variable

Code: Select all

if %selected_sound%==1 (

Regards
aGerman


Thanks, I missed that the hole time.
Now it works, except that /min doesnt seem to work.

grotch
by grotch
31 Jul 2016 12:14
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Re: Batch soundboard programm

The START command doesn't wait that the sound file has been finished. If .mp3 is not associated with a certain player nothing will even happen. START /MIN does work for applications but you try to run a file without directly running an application (player). You have to specify the path to your play...
by grotch
31 Jul 2016 07:37
Forum: DOS Batch Forum
Topic: Batch soundboard programm
Replies: 22
Views: 15669

Batch soundboard programm

Hello, I want to create a soundboard with batch, but I have a problem: When I run the batchfile it does not start the soundfile. @echo off if not exist "C:\Users\%username%\Music\Soundboard" md "C:\Users\%username%\Music\Soundboard" set sounds_path=C:\Users\%username%\Music\Sound...