Exemplo n.º 1
0
        private void button_ClickTest_Click(object sender, EventArgs e)
        {
            //
            IntPtr             handle = (IntPtr)Convert.ToInt32(this.textBox_CommandLineHandle.Text, 16);
            CommandLinesHooker hooker = new CommandLinesHooker(handle);

            hooker.SendMessageClick();

            if (m_CommandLineHooker == null)
            {
                m_CommandLineHooker = new CommandLinesHooker(handle);
            }

            SetLog("已测试完命令Combox点击,请检查MC-CommandCombox...");
        }
Exemplo n.º 2
0
        private void button_SendCommandLines_Click(object sender, EventArgs e)
        {
            try
            {
                IntPtr             handle = (IntPtr)Convert.ToInt32(this.textBox_CommandLineHandle.Text, 16);
                CommandLinesHooker hooker = new CommandLinesHooker(handle);
                hooker.SendMessageCommandLine(this.textBox_TestCommandLine.Text);

                if (m_CommandLineHooker == null)
                {
                    m_CommandLineHooker = new CommandLinesHooker(handle);
                }

                SetLog("已测试完命令Combox输入,请检查MC-CommandCombox...");
            }
            catch (Exception ex)
            {
                SetLog(string.Format("测试完命令Combox输入发生异常,请检查句柄可能的错误:{0}...", ex.Message));
            }
        }