<pre>on displayIcons whichButton  if whichButton is empty then put 1 into whichButton  put the icon of whichButton into prevIcon  repeat until the mouseClick    repeat with x = 1 to 1800      if the mouseClick then exit displayIcons      set icon of whichButton to x      wait 15 ticks    end repeat  end repeatend displayIcons</pre>