Skip to content
MSN

toolbar and the active window

A TG007 community discussion started by DreaM.

Discussion 4 posts
Page 1 of 1
Open
Topic #4585 · 4 published posts · 572 views

hey guys,

 

I have question.. I am using toolbar (docked one to the top) and I join more than one room, When I click access button on my toolbar to get the access it always gets the access of first channel I joined so I tried someone like

on *:dialog:toolbar:sclick:1:{ echo -a $msn.get($cid,fullroom) } 

to see the active channel and I always get first channel as it is the active one.

I can not make for each channel specified toolbar for it because it is not needed so how let it get informations of the active opened channel while am clicking the button?

 

you need to change the active connection id, so before you call up the access, use scid $activecid

so something like

on *:dialog:toolbar:sclick:1:{ scid $activecid | echo -a $msn.get($cid,fullroom) }

"the important thing was, that i had an onion on my belt, which was the style at the time"

or use $active

My code does NOT have bugs. It just develops random features.