All pastes #971581 Raw Edit

Miles

public text v1 · immutable
·published 2008-04-04 21:09 UTC
rendered paste body
alias control.scrollbar.click {
  if ( !$1 ) { return }
  var %hash = $1
  tokenize 32 $scrollbar.button.coords(%hash, 1) | if ($inrect($mouse.x, $mouse.y, $1, $2, $3, $4)) { echo -s Click button 1 | return }
  tokenize 32 $scrollbar.button.coords(%hash, 2) | if ($inrect($mouse.x, $mouse.y, $1, $2, $3, $4)) { echo -s Click button 2 | return }
}