package net.northking.cctp.element.desktop.constants;

/**
 * <p>Title: CmdConstant</p>
 * <p>Description: 指令名称常量</p>
 *
 * @Author chenjianfeng
 * @Version V1.0
 * @Date 2022/10/17
 * <p>Copyright: NorthKing@RPA（C）2020 版权</p>
 */

public class CmdConstant {

    // ----  创建与销毁脚本执行环境 （被依赖时使用）-------
    /**
     * 初始化脚本执行环境
     */
    public static final String INIT_ENV = "InitEnv";
    /**
     * 清理脚本执行环境
     */
    public static final String COMPLETE = "Complete";

    /**
     * 录屏控制
     */
    public static final String RECORDING = "Recording";

    /**
     * 截屏
     */
    public static final String ENGINE_TAKE_SCREEN = "EngineTakeScreen";


    // ----  操作类组件 -------

    // --- 指令前缀 ---
    /**
     * 元素识别
     */
    public static final String CMD_PREFIX_ELEMENT = "Element";
    /**
     * 图像识别
     */
    public static final String CMD_PREFIX_IMAGE = "Image";
    /**
     * OCR
     */
    public static final String CMD_PREFIX_OCR = "Ocr";
    /**
     * 坐标
     */
    public static final String CMD_PREFIX_POINT = "Point";

    // --- 指令后缀 ---
    /**
     * 点击
     */
    public static final String CMD_SUFFIX_CLICK = "Click";
    /**
     * 输入
     */
    public static final String CMD_SUFFIX_INPUT = "Input";
    /**
     * 设置值
     */
    public static final String CMD_SUFFIX_SET_TEXT = "SetText";

    /**
     * 调用控件的显示值
     */
    public static final String CMD_SUFFIX_GET_TEXT = "GetText";
    /**
     * 鼠标拖拽
     */
    public static final String CMD_SUFFIX_MOUSE_DRAG = "MouseDrag";
    /**
     * 鼠标滚动
     */
    public static final String CMD_SUFFIX_MOUSE_SCROLL = "Scroll";
    /**
     * 判断元素是否存在
     */
    public static final String CMD_SUFFIX_EXISTS = "Exists";
    /**
     * 发送热键
     */
    public static final String CMD_SUFFIX_SEND_HOT_KEY = "SendHotKey";

    /**
     * 鼠标悬停
     */
    public static final String CMD_SUFFIX_MOUSE_HOVER = "Hover";

    /**
     * 勾选组件
     */
    public static final String CMD_SUFFIX_CHECK = "Check";

    /**
     * 下拉单选框
     */
    public static final String CMD_SUFFIX_SELECT_ITEM = "SelectItem";

    /**
     * 断言包含文本
     */
    public static final String CMD_SUFFIX_CONTAIN_TEXT = "ContainText";

    /**
     * 识别数字图片验证码
     */
    public static final String CMD_SUFFIX_VERIFICATION = "Verification";

    /**
     * 屏幕截图
     */
    public static final String CMD_SUFFIX_TAKE_SCREEN = "TakeScreen";

    /**
     * 网银密码框输入
     */
    public static final String CMD_SUFFIX_SERIAL_PORT_INPUT = "SerialPortInput";



    /**
     * 打开应用
     */
    public static final String CMD_SUFFIX_OPEN_APP = "OpenApp";
    /**
     * 关闭应用
     */
    public static final String CMD_SUFFIX_CLOSE_APP = "CloseApp";


    // ----  应用程序类组件 -------
    /**
     * 打开浏览器
     */
    public static final String OPEN_BROWSER = "OpenBrowser";
    /**
     * 关闭浏览器
     */
    public static final String CLOSE_BROWSER = "CloseBrowser";
    /**
     * 打开应用
     */
    public static final String OPEN_APP = "OpenApp";
    /**
     * 关闭应用
     */
    public static final String CLOSE_APP = "CloseApp";
    /**
     * 关闭浏览器标签页
     */
    public static final String CLOSE_BROWSER_TABS = "CloseBrowserTabs";
}
