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