if( %rightBtnCmd $= "noButtons" ) { //do nothing, as there are no buttons }
proprietary script language.