mIRC Home    About    Download    Register    News    Help

Print Thread
#150709 07/06/06 10:17 AM
Joined: May 2006
Posts: 122
J
jizzy Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: May 2006
Posts: 122
Im using this code to keep the window centered everytime it is triggered no matter what size it is and no matter what size/position the main window is.
Code:
window -adkC +L @Clones $round($calc(($window(-2).w / 2) - ($window(@clones).w / 2)),0) $round($calc(($window(-2).h / 2) - ($window(@clones).h / 2)),0) $iif(!$window(@clones),400) $iif(!$windows(@clones),300)

Surely theres a much easier and simpler way im overlooking.
Any suggestions?


If only women came with popup menus and online help.
Joined: May 2006
Posts: 122
J
jizzy Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: May 2006
Posts: 122
Nevermind found the solution:
Code:
  window $$iif($window(@clones),-a @clones,-dkC +L @Clones 0 0 400 300)

Dont know why I didn't think of that.


If only women came with popup menus and online help.

Link Copied to Clipboard