View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#2
Originally Posted by dr_frost_dk View Post
I was wondering if anybody knew of a program or simple script that can intercept SMS and play a random audio file from a folder.

I have a lot of funny audio clips and wanted to have them play at random when i get an SMS.

Now i have already made a few scripts in the past but my memory sometime works like RAM and gets "reset" and im drawing blanks on how to even do DBUS right now, even thou i made something like this for the simple brightness in the past.
Excuse the terse rsponse, I am on n900 over 'borrowed' wifi.

To put it simply you would need to use a script triggered by dbus. You need to use either dbus-scripts, dbuscron or a custom script with some kind of loop and dbus-monitor. When your script intercepts the 'sms received' dbus message it needs to use awk, sed, grep, etc to alter the config file for a given profile. So, populate list of folder of random sounds then replace reference to sound in profile config.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following User Says Thank You to vi_ For This Useful Post: