I think we have a slight misunderstanding of switchbar. A switchbar is either at the top, bottom, left, right position of your mIRC. It displays the private messages, channels, DCC gets/sends, server connections.

With your code you need it to be docked with DLL's such as hOs.dll or UltraDock.dll found here

As for coding your buttons:

Code:
On *:Dialog:switchy:*:*: {
  if ($devent == sclick) {
    if ($did == 21) server $$did($dname,19)
  }
}


Try that for example.

-Andy