mIRC Home    About    Download    Register    News    Help

Print Thread
#207757 31/12/08 03:53 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
Code:
;It is a valid code?
;I would like to create an alias that allows me to enlarge or shrink a dialogue with the wide or long

$_dialog(name,[w/h],n1,n2,[open/close])

_dialog {
 if $2 == w { 
 if $5 == open { did -s $1 -1 -1 $3 $4 }
 else { did -s $1 -1 -1 $4 $3 }
 }
 if $2 == h { 
 if $5 == open { did -s $1 -1 -1 $3 $4 }
 else { did -s $1 -1 -1 $4 $3 }
 }
}

;w/h Width High
;n1 Minimum
;n2 maximum extent
;open/close expand reduce

Last edited by kwell; 31/12/08 03:54 PM.
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
It depends on where you want to use it. If you're trying to resize a modeless dialog via manual input, then all you need (in an alias) is:
Code:
/dialog -s name x y w h


Link Copied to Clipboard