<pre>function rectToLoc rect  toComputer  put item 3 of rect - item 1 of rect into width  put item 4 of rect - item 2 of rect into height  put round(item 1 of rect + width/2) into centerH  put round(item 2 of rect + height/2) into centerV  return centerH & "," & centerVend rectToLoc</pre>