Beispiel #1
0
        private void button_SendNullStr_Click(object sender, EventArgs e)
        {
            IntPtr            handle = (IntPtr)Convert.ToInt32(this.textBox_OutputHandle.Text, 16);
            McOutPutWndHooker hooker = new McOutPutWndHooker(handle);

            hooker.SendMessageToOutPutWnd("");

            if (m_looper == null)
            {
                m_looper = new MCDataLooper(handle);
            }

            SetLog("已测试完清空输出窗口,请检查MC输出窗口...");
        }
Beispiel #2
0
        private void button_GetOutPutContent_Click(object sender, EventArgs e)
        {
            IntPtr            handle = (IntPtr)Convert.ToInt32(this.textBox_OutputHandle.Text, 16);
            McOutPutWndHooker hooker = new McOutPutWndHooker(handle);
            string            result = hooker.SendMessageToHoldOutPutMessage();

            if (m_looper == null)
            {
                m_looper = new MCDataLooper(handle);
            }

            SetLog("已测试完获取输出窗口的当前信息,请检查,信息如下...");
            this.richTextBox_log.AppendText("\n" + result);
        }