I'm basically trying to extract a line of text after a bind/call.. the text then is forewarded to an external application where its sorted and applied to a search..
for those who have been following my last posts.. I'm now trying to send a string to the RAC..
I have broken it down to the raw commands needed by the RAC that it looks for and can "parse" or insert the string in..
ROUGH code is as follows: mind you- its nowhere near complete or functioning but is included for the following discussion.
Code: Select all
bind pub - !find SrcPlay
proc SrcPlay {args} {
global RacIP RacPort Src input
set Src [catch {[exec fetch -q -A -m -T 1 -o - "http://$RacIP:$RacPort/x/play.cgi?id=$input]}]
}
Src playlist listing (not needed for this function but another one that goes with this (I haven't got that far yet!)
at the time of this posting, I'm sorta "swirled" on how I'm going to do the functions:
the feature will do 2 things:
1.. voiced chatters enter "!search line of text" and then will get a private window displaying the found results.. with numbers assigned to them (the RAC assigns numbers to the database entries based as an html sytle sheet.. parsing that will be a nightmare all in itself!) then they enter "!play number" to have their tune added to the playlist queue.. (of course I'll have to check the queue to make sure multiple entries are ignored)
again, this is a VERY rough layout.. open to discussion and changes!
-DjZ-

