ScreenRegion s = new DesktopScreenRegion();
URL clickhere = SpeakerExample.class.getResource("clickhere.wav");
URL imageURL = Images.GoogleSearchButton;
Target imageTarget = new ImageTarget(imageURL);
ScreenRegion r = s.find(imageTarget);
mouse.click(r.getCenter());
canvas.clear().addBox(r);
canvas.displayWhile(new SpeakerPlayable(clickhere));
imageURL = Images.GoogleMicrophoneIcon;
imageTarget = new ImageTarget(imageURL);
r = s.find(imageTarget);
mouse.rightClick(r.getCenter());
canvas.clear().addBox(r);
canvas.displayWhile(new SpeakerPlayable(clickhere));
imageURL = Images.GoogleSearchFeelingLuckyButton;
imageTarget = new ImageTarget(imageURL);
r = s.find(imageTarget);
mouse.doubleClick(r.getCenter());
canvas.clear().addBox(r);
canvas.displayWhile(new SpeakerPlayable(clickhere));