Example #1
0
 private void btInfo_Click(object sender, EventArgs e)
 {
     tbLog.AppendText(CheDaoFactory.Dump() + Environment.NewLine);
     tbLog.AppendText(Win32Locator.Dump() + Environment.NewLine);
     tbLog.AppendText(Program.log.Dump() + Environment.NewLine);
     //tbLog.AppendText(ShuiKongFactory.Test() + Environment.NewLine);
 }
        public String TestLocationFunction()
        {
            String res = "Test:\n Detect " + anch_wnd_str + "\n";

            ((ShuiKongInterface)this).DetectShuiKong();
            res += Win32Locator.Dump() + Environment.NewLine;
            foreach (String wnd_str in mFieldMap.Keys)
            {
                String fix = GetWndClassPostFix() != null?GetWndClassPostFix() : "";

                res += "Find " + wnd_str + " with postfix " + fix + Environment.NewLine;
                Win32Locator.locateWindow(wnd_str, GetWndClassPostFix());
                res += Win32Locator.Dump();
            }
            return(res);
        }
        String ShuiKongInterface.TestLocationFunction()
        {
            String res = "Test:\n Detect " + anch_wnd_str + "\n";

            ((ShuiKongInterface)this).DetectShuiKong();
            res += Win32Locator.Dump() + Environment.NewLine;
            if (this.first_editor_wnd_str != null)
            {
                String fix = GetWndClassPostFix() != null?GetWndClassPostFix() : "";

                res += "find 1st Editor " + this.first_editor_wnd_str + "with postfix " + fix + Environment.NewLine;
                Win32Locator.locateWindow(this.first_editor_wnd_str, GetWndClassPostFix());
                res += Win32Locator.Dump();
            }
            return(res);
        }