This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

how to centralize the commands only in a room

Help for those learning Tcl or writing their own scripts.
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

flink wrote:good Crazy Cat thanks for contributing ideas I removed pub and it still doesn't work !direct

Code: Select all

::radio::getstream 0 0 0 0 0
As I said, you must also change the proc:

Code: Select all

if {($wd eq "pub") || ($::radio::cursong ne $title)} { 
must become:

Code: Select all

if {($wd == 0) || ($::radio::cursong ne $title)} { 
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

lol, that's simply not true:)

Code: Select all

Must be: 

 Code: 
::radio::getstream 0 0 0 0 0

The called process doesn't care what the arguments contain!

I edited my earlier post to hopefully fix that "wrong number of args" error...
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Ok, I was quite surprised that tcl checks the type of the arguments... I know understand :)
User avatar
flink
Halfop
Posts: 70
Joined: Sun Feb 21, 2021 9:27 am
Location: Canarias

Post by flink »

sorry for not responding before doing what you comment
crazy cat
works perfectly
Thanks a lot
SpiKe^^ & Crazy Cat
Mi ingles: no es el mejor, Manda el traductor... :)
Post Reply