BSR Security Script

Squintz

Senior Member
I never used sound with scripts. Im having a little trouble. I am getting a type mismatch error when running this script.
Code:
Dim strFile, intDeviceID               '* Sound Declarations

CONST DefaultWAV = "C:\Program Files\HomeSeer\Security Sounds\alarm_beep.wav"    '* Default Alert
CONST GlassWav = "C:\Program Files\HomeSeer\Security Sounds\glass_shatter_c.wav" '* Window  Alert

sub main() 
 Call PlayWaveFile(DefaultWAV, 1)
  
end sub

Function PlayWaveFile(strFile, intDeviceID)
   hs.PlayWavFileEx strFile,intDeviceID,50,True
end function
 
Top