well i finally made my very first tcl script
it's a swedish tv-program fetcher
The only thing i'm not able to finalize is how do i check the input, like
Code: Select all
!teve discoveryCode: Select all
!teve discoveryCode: Select all
switch -- [strlwr [lindex $text 0]] {
"discovery" {
# something for the discovery channel
}
"animalplanet" {
# somkething here for the animal planet..
}
# and so on.
default {
# insert here something for the channels you don't have
# if the channels dosen't exist this will be called.
}
}