| View previous topic :: View next topic |
| Author |
Message |
tolkien Voice
Joined: 06 Aug 2008 Posts: 14
|
Posted: Tue Aug 19, 2008 6:38 pm Post subject: playing a sound when triggered |
|
|
i am using this method to use triggers on my channel
set trigger1 "!whatever"
set text1 "whatver i want to say"
theres more codes in it like
bind pub $trigbind $trigger1 text-1
proc text-1 {n u h c a } {
global channelone
global channeltwo
global channelthree
global text1
if {$c == $channelone || $c == $channeltwo || $c == $channelthree} {
puthelp "PRIVMSG $c :$text1"
}
return 0
}
now what i want to do is when its trigger to play a sound i will host with my bot. want only for one specific trigger to play sound...
also if i wanted to add the person name of who did trigger name into wwhats displayed how would i do that |
|
| Back to top |
|
 |
game_over Voice
Joined: 26 Apr 2007 Posts: 29
|
Posted: Fri Sep 19, 2008 10:45 am Post subject: |
|
|
I can tell you how this may happen on WINDOWS
write on your cmd this
| Code: | | sndrec32 /play /close C:\Windows\Media\Notify.wav |
now on tcl :example:
| Code: |
set sound "C:/Windows/Media/Notify.wav"
set playsound [exec sndrec32 /play /close $sound] |
on LINUX
http://linux.about.com/library/bl/open/newbie/blnewbie5.18.htm
| Code: |
set sound "path"
set playsound [exec play $sound] |
(just instal right packages)
if i wish my sound play whit different program on windows example on win media player
| Code: |
set sound "C:/Windows/Media/Notify.wav"
set playsound [exec wmplayer.exe /play /close $sound] |
same on linux |
|
| Back to top |
|
 |
|