• Playing Sound files in My

    From Nugax@21:1/107 to Skuz on Saturday, May 20, 2017 08:11:34
    I'd rather not know the exact time someone logins! :)

    Just me!



    Skuz wrote to Avenger <=-

    Hello Avenger!

    18 May 17 20:20, you wrote to all:

    So one of the ideas I had for my BBS was to have a short music file
    play on logon and logoff. I know, could be annoying.. but my thought
    was to cut out some of my favorite parts of songs and have them rotate
    so it's not the same thing every time.

    Here is the way I do it here when a user logs in. In my prelogin menu there is a D3 exec program data c:\doors\run-audio.bat The batch
    file looks like. @echo off
    C:
    cd /d %programfiles%\videoLAN\VLC
    start /min vlc %systemroot%\media\logon.mp3 vlc://quit
    C:
    cd \mystic

    You can change it to do different audio files by adding "if exist" for whatever

    the day of the week is; mon, tue, wed, etc. etc.. or there is probably other ways to do what your thinking about. If I understand what your taking about. Your options are endless.. You can also log that date and time with..

    @Echo off
    SET LOGFILE=c:\mystic\logs\audio.log
    call :Logit >> %LOGFILE%
    exit /b 0

    :Logit
    :: ....
    set hour=%time:~0,2%
    if "%hour:~0,1%" == " " set hour=0%hour:~1,1%
    set min=%time:~3,2%
    if "%min:~0,1%" == " " set min=0%min:~1,1%
    set secs=%time:~6,2%
    if "%secs:~0,1%" == " " set secs=0%secs:~1,1%
    set year=%date:~-4%
    set month=%date:~3,2%
    if "%month:~0,1%" == " " set month=0%month:~1,1%
    set day=%date:~0,2%
    if "%day:~0,1%" == " " set day=0%day:~1,1%
    set datetimef=%year%%month%%day%_%hour%%min%%secs%
    echo datetimef=%datetimef%
    cd /d %programfiles%\videoLAN\VLC
    start /min vlc %systemroot%\media\logon.mp3 vlc://quit
    SET LOGFILE=
    c:
    cd \mystic

    --- GoldED+/W32-MSVC 1.1.5-b20160201
    * Origin: flupH * fluph.darktech.org (21:1/105)

    ... Heisenberg may have slept here.
    ___ MultiMail/Linux v0.50

    --- Mystic BBS/QWK v1.12 A33 (Linux/64)
    * Origin: -=The ByteXchange BBS : bbs.thebytexchange.com=- (21:1/107)