[mICQ] Fun with event scripts

leo leorosa@feq.unicamp.br
Wed Mar 12 18:19:01 2003


Yes, it could be helpful to have some examples to get new ideas...
I have an executable file 'reveivescript' at ~/.micq/ , having the
following lines (among others...)

-----8<----------
#!/bin/sh

ifplay() {
    if fuser /dev/dsp >/dev/null ; then echo -ne "\a"
    else play $1; fi
}

if [ "$5" = "msg" ] ; then ifplay ~/.micq/url.wav       ; fi
if [ "$5" = "on"  ] ; then ifplay ~/.micq/system.wav    ; fi
if [ "$3" = "l2" -a "$5" = "on" ] ; then
    echo "msg $3 aeee!!!!!" > ~/.micq/remote-control    ; fi

#echo "1[$1] 2[$2] 3[$3] 4[$4] 5[$5] 6[$6] 7[$7]"
-----8<----------

hope to help,
leo

On Sat, Mar 08, 2003 at 11:10:30AM +0100, D wrote:
> Hello there,
> 
> I wonder if I might find some examples of micq 
> event scripts out there. Anyone willing to share 
> his script with a non-programmer like me?
> 
> Thanks a lot
> 
> Regards
> 
> Daniel
> 
> -- 
> mICQ-List mailing list
> mICQ-List@micq.org
> http://micq.org/mailman/listinfo/micq-list