mIRC Home    About    Download    Register    News    Help

Print Thread
#25839 24/05/03 07:33 PM
Joined: May 2003
Posts: 730
S
ScatMan Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
i want that $did(name,id).min and $did(name,id).max will return the range of the scrollbar so if the range is 10 40 (ex: scroll "",1, 1 1 10 100,range 10 40) so the .mix will return 10 and .max will return 40.
i know that the $did(name,id).lines returns the MAX but it's not enough, i need the MIN too.

Last edited by ScatMan; 24/05/03 07:36 PM.
#25840 25/05/03 02:23 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Until it's added, you can use something like this to get the min value:
Code:
alias didmin {
  var %a = $did($1,$2).sel
  did -c $1-2 0
  var %b = $did($1,$2).sel
  did -c $1-2 %a
  return %b
}


Usage: $didmin(<dialogname>,<id>)


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard