﻿use audio,sms;

audio.volume(90);  //volume to 90 %

print 'Program is running...';
print 'While using this program, disable all sounds for SMS in standard phone settings.';

while true do
  try
    message=sms.receive();
    case sms.get(message)['sender']
      in '': //message confirm (I sent message)
        audio.play('c:\\Media Files\\vypis.mp3');
      in '2255','39901','608','7700':
        //no sound
      in '+420777123456':
        audio.play('c:\\Media Files\\soundfor777123456.mp3');
      else   // somebody else
        audio.play('c:\\Media Files\\other.mp3');
    end;
  catch e by
  end;
end;
