Code covered by the BSD License
if strcmp(currentmousetool,'selection') & exist('a'); mouse_location; selecting_button_move_script; elseif strcmp(currentmousetool,'none') & exist('a'); end;
Contact us at files@mathworks.com