I tried, but i could not make it work... lacking specific information in my code.
$xdock(mIRC).treeBarPos did not return the position of Treebar
even the error and do not understand where i'm wrong.

.echo $xdock(mIRC).treeBarPos

Code:
alias treebardialog { 
  if ($xdock(mIRC).treeBarPos == left) {
    /set %pos_or -500
    /set %pos_vr -100
    /set %pos_lr 320
    /set %pos_lu 1080
  }
  if ($xdock(mIRC).treeBarPos == right) {
    /set %pos_or 1920
    /set %pos_vr -100
    /set %pos_lr 320
    /set %pos_lu 1080
  }
  if ($xdock(mIRC).treeBarPos == top) {
    /set %pos_or -100
    /set %pos_vr -100
    /set %pos_lr 1920
    /set %pos_lu 400
  }
  if ($xdock(mIRC).treeBarPos == bottom) {
    /set %pos_or -100
    /set %pos_vr 1600
    /set %pos_lr 1920
    /set %pos_lu 400
  }
  dialog -ma treebardialog treebardialog_table
  /xdialog -b treebardialog -hmnsvxzo
  /xdialog -R treebardialog +s $dcx(GetSystemColor, COLOR_WINDOW)
  if ($xdock(mIRC).treeBarPos == left) { cla_tree_lr } 
  if ($xdock(mIRC).treeBarPos == right) { cla_tree_lr } 
  if ($xdock(mIRC).treeBarPos == top) { cla_tree_tb } 
  if ($xdock(mIRC).treeBarPos == bottom) { cla_tree_tb } 
  .timer 1 0 xdialog -l treebardialog update
}


Now work, perfect, it works well... LOLĀ³
Thanks for the advice.

Last edited by DEATHJ0KER; 16/04/16 12:23 AM. Reason: added sample code

A Creative & Interactive mIRC Scripting