/**
Khalid
*/
package org.sikuli.slides.sikuli;

import org.sikuli.api.ScreenRegion;
import org.sikuli.api.visual.Canvas;
import org.sikuli.api.visual.DesktopCanvas;

import org.sikuli.slides.utils.Constants;

public class SikuliController {
	
	/**
	 * display a box around a screen region
	 * @param screenRegion the region to draw a box around
	 */
	public static void displayBox(ScreenRegion screenRegion){
		Canvas canvas=new DesktopCanvas();
		// Display the canvas around the target
		canvas.addBox(screenRegion);
		canvas.display(Constants.CANVAS_DURATION);
	}
}

@@ -64,16 +64,23 @@
 uli.api.
+Desktop
 ScreenRe
@@ -85,16 +85,103 @@
 Region;%0A
+import org.sikuli.api.ScreenRegion;%0Aimport org.sikuli.api.robot.desktop.DesktopScreen;%0A
 import o
@@ -253,17 +253,16 @@
 Canvas;%0A
-%0A
 import o
@@ -606,16 +606,16 @@
 egion);%0A
-
 %09%09canvas
@@ -654,10 +654,221 @@
 ON);%0A%09%7D%0A
+%09%0A%09public static ScreenRegion getFullScreenRegion()%7B%0A%09%09ScreenRegion fullScreenRegion=new DesktopScreenRegion();%0A%09%09fullScreenRegion.setScreen(new DesktopScreen(Constants.ScreenId));%0A%09%09return fullScreenRegion;%0A%09%7D%0A
 %7D%0A

add external monitor support