// Path: src/cn/com/jautoitx/Keyboard.java
// public static enum SendFlag {
// 	/*
// 	 * (default), Text contains special characters like + and ! to indicate
// 	 * SHIFT and ALT key presses
// 	 */
// 	SEND_SPECIAL_KEYS(0),
// 
// 	/* keys are sent raw */
// 	SEND_RAW_KEYS(1);
// 
// 	private int sendFlag;
// 
// 	private SendFlag(final int sendFlag) {
// 		this.sendFlag = sendFlag;
// 	}
// 
// 	public int getSendFlag() {
// 		return sendFlag;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return String.valueOf(sendFlag);
// 	}
// }


import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.junit.Assert;
import org.junit.Test;
import cn.com.jautoitx.Keyboard.SendFlag;

			// }
			sleep(500);
			Assert.assertTrue(file.exists());
			Assert.assertEquals("1234567890你好",
					FileUtils.readFileToString(file, "Unicode"));
			Assert.assertTrue(file.delete());

			// run notepad
			pid = runNotepad();

			Keyboard.send("+2+3");
			Win.close(NOTEPAD_TITLE);
			Keyboard.send("{ENTER}");
			Assert.assertTrue(Win.wait(SAVE_AS_DIALOG_TITLE, 2));
			Keyboard.send("^{SPACE}");
			Keyboard.send(file.getAbsolutePath());
			Keyboard.send("{ENTER}");
			// send ENTER two times if needed because the reasons for the input
			// method
			// if (Win.exists(SAVE_AS_DIALOG_TITLE)) {
			// Keyboard.send("{ENTER}");
			// }
			sleep(500);
			Assert.assertTrue(file.exists());
			Assert.assertEquals("@#", FileUtils.readFileToString(file, "UTF-8"));
			Assert.assertTrue(file.delete());

			// run notepad
			pid = runNotepad();


// Path: src/cn/com/jautoitx/Keyboard.java
// public static enum SendFlag {
// 	/*
// 	 * (default), Text contains special characters like + and ! to indicate
// 	 * SHIFT and ALT key presses
// 	 */
// 	SEND_SPECIAL_KEYS(0),
// 
// 	/* keys are sent raw */
// 	SEND_RAW_KEYS(1);
// 
// 	private int sendFlag;
// 
// 	private SendFlag(final int sendFlag) {
// 		this.sendFlag = sendFlag;
// 	}
// 
// 	public int getSendFlag() {
// 		return sendFlag;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return String.valueOf(sendFlag);
// 	}
// }


// Path: test/cn/com/jautoitx/KeyboardTest.java
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.junit.Assert;
import org.junit.Test;
import cn.com.jautoitx.Keyboard.SendFlag;

			// }
			sleep(500);
			Assert.assertTrue(file.exists());
			Assert.assertEquals("1234567890你好",
					FileUtils.readFileToString(file, "Unicode"));
			Assert.assertTrue(file.delete());

			// run notepad
			pid = runNotepad();

			Keyboard.send("+2+3");
			Win.close(NOTEPAD_TITLE);
			Keyboard.send("{ENTER}");
			Assert.assertTrue(Win.wait(SAVE_AS_DIALOG_TITLE, 2));
			Keyboard.send("^{SPACE}");
			Keyboard.send(file.getAbsolutePath());
			Keyboard.send("{ENTER}");
			// send ENTER two times if needed because the reasons for the input
			// method
			// if (Win.exists(SAVE_AS_DIALOG_TITLE)) {
			// Keyboard.send("{ENTER}");
			// }
			sleep(500);
			Assert.assertTrue(file.exists());
			Assert.assertEquals("@#", FileUtils.readFileToString(file, "UTF-8"));
			Assert.assertTrue(file.delete());

			// run notepad
			pid = runNotepad();


			Keyboard.send("+2+3", SendFlag.SEND_RAW_KEYS);
