// Path: src/cn/com/jautoitx/Opt.java
// public static enum CoordMode {
// 	/* relative coords to the active window */
// 	RELATIVE_TO_ACTIVE_WINDOW(0),
// 
// 	/* absolute screen coordinates (default) */
// 	ABSOLUTE_SCREEN_COORDINATES(1),
// 
// 	/* relative coords to the client area of the active window */
// 	RELATIVE_TO_CLIENT_AREA_OF_ACTIVE_WINDOW(2);
// 
// 	private final int coordMode;
// 
// 	private CoordMode(final int coordMode) {
// 		this.coordMode = coordMode;
// 	}
// 
// 	public int getCoordMode() {
// 		return coordMode;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		switch (this) {
// 		case RELATIVE_TO_ACTIVE_WINDOW:
// 			return "relative coords to the active window";
// 		case ABSOLUTE_SCREEN_COORDINATES:
// 			return "absolute screen coordinates";
// 		case RELATIVE_TO_CLIENT_AREA_OF_ACTIVE_WINDOW:
// 			return "relative coords to the client area of the active window";
// 		default:
// 			return "Unknown coord mode";
// 		}
// 	}
// }


import java.io.Closeable;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.CharBuffer;
import java.util.logging.Logger;
import org.apache.commons.lang3.StringUtils;
import cn.com.jautoitx.Opt.CoordMode;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Platform;
import com.sun.jna.Pointer;
import com.sun.jna.WString;
import com.sun.jna.platform.win32.WinDef.HWND;
import com.sun.jna.platform.win32.WinDef.POINT;
import com.sun.jna.platform.win32.WinDef.RECT;

				final Integer timeout);

		/**
		 * Pauses execution of the script until the requested window is not
		 * active.
		 * 
		 * If the window already not active when this function is called it will
		 * return 0 immediately. The script polls for a window match every 250
		 * milliseconds or so.
		 * 
		 * @param title
		 *            The title of the window to check.
		 * @return Returns 0 if the timeout occurred, otherwise returns 1.
		 */
		public int AU3_WinWaitNotActive(final WString title);

		/**
		 * Pauses execution of the script until the requested window is not
		 * active.
		 * 
		 * If the window already not active when this function is called it will
		 * return 0 immediately. The script polls for a window match every 250
		 * milliseconds or so.
		 * 
		 * @param title
		 *            The title of the window to check.
		 * @param text
		 *            The text of the window to check.
		 * @return Returns 0 if the timeout occurred, otherwise returns 1.
		 */

// Path: src/cn/com/jautoitx/Opt.java
// public static enum CoordMode {
// 	/* relative coords to the active window */
// 	RELATIVE_TO_ACTIVE_WINDOW(0),
// 
// 	/* absolute screen coordinates (default) */
// 	ABSOLUTE_SCREEN_COORDINATES(1),
// 
// 	/* relative coords to the client area of the active window */
// 	RELATIVE_TO_CLIENT_AREA_OF_ACTIVE_WINDOW(2);
// 
// 	private final int coordMode;
// 
// 	private CoordMode(final int coordMode) {
// 		this.coordMode = coordMode;
// 	}
// 
// 	public int getCoordMode() {
// 		return coordMode;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		switch (this) {
// 		case RELATIVE_TO_ACTIVE_WINDOW:
// 			return "relative coords to the active window";
// 		case ABSOLUTE_SCREEN_COORDINATES:
// 			return "absolute screen coordinates";
// 		case RELATIVE_TO_CLIENT_AREA_OF_ACTIVE_WINDOW:
// 			return "relative coords to the client area of the active window";
// 		default:
// 			return "Unknown coord mode";
// 		}
// 	}
// }


// Path: src/cn/com/jautoitx/AutoItX.java
import java.io.Closeable;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.CharBuffer;
import java.util.logging.Logger;
import org.apache.commons.lang3.StringUtils;
import cn.com.jautoitx.Opt.CoordMode;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Platform;
import com.sun.jna.Pointer;
import com.sun.jna.WString;
import com.sun.jna.platform.win32.WinDef.HWND;
import com.sun.jna.platform.win32.WinDef.POINT;
import com.sun.jna.platform.win32.WinDef.RECT;

				final Integer timeout);

		/**
		 * Pauses execution of the script until the requested window is not
		 * active.
		 * 
		 * If the window already not active when this function is called it will
		 * return 0 immediately. The script polls for a window match every 250
		 * milliseconds or so.
		 * 
		 * @param title
		 *            The title of the window to check.
		 * @return Returns 0 if the timeout occurred, otherwise returns 1.
		 */
		public int AU3_WinWaitNotActive(final WString title);

		/**
		 * Pauses execution of the script until the requested window is not
		 * active.
		 * 
		 * If the window already not active when this function is called it will
		 * return 0 immediately. The script polls for a window match every 250
		 * milliseconds or so.
		 * 
		 * @param title
		 *            The title of the window to check.
		 * @param text
		 *            The text of the window to check.
		 * @return Returns 0 if the timeout occurred, otherwise returns 1.
		 */

		public int AU3_WinWaitNotActive(final WString title, final WString text);
