Exemple #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("");

            int timer = int.MinValue;

            int.TryParse(this.textBox_timer.Text, out timer);


            if (m_looper == null)
            {
                m_looper = new MCDataLooper(handle, timer);
            }
        }
Exemple #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();

            int timer = int.MinValue;

            int.TryParse(this.textBox_timer.Text, out timer);


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

            this.richTextBox1.AppendText("\n" + result);
        }