Kaseya Community

Play a sound

  • I would like to be able to play a sound on a pc. I have a script that simple opens a wav file but that opens up windows media player and changes the active application. Anyone got any ideas?

    Legacy Forum Name: Play a sound,
    Legacy Posted By Username: Dean Osborne
  • Not sure if this is what you are looking for but might be a step forward... searching the forums I found this post...

    ISL
    Hi,

    This indeed possible and very easy to do ;-)

    I downloaded mpg123.exe (a open-source MP3 command line player and a free mp3 alert.
    I copied MPG123.exe , it's dll file and the alarm.mp3 to the harddisk off our central console pc.

    Then, on alert I play the following script on that pc:

    IF True
    THEN
    Execute File - (Continue on Fail)
    Parameter 1 : c:\alarm\mpg123.exe
    Parameter 2 : c:\alarm\alarm.mp3
    Parameter 3 : 0
    OS Type : 0
    ELSE

    thats all.


    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: GDRBrian
  • Thanks I have tried this and seems to work but no sounds actually comes out. It probably just needs some tweaking.

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: Dean Osborne