예제 #1
0
        private void SendMessage()
        {
            CommonEvents = (WindowGUIEditor.CommonEvents)MessageComboBox.SelectedIndex;
            uint message = getCommonEventNumber();

            int lparam = 0;
            int wparam = 0;

            try
            {
                if (WParamTextBox.Text != "")
                {
                    wparam = Convert.ToInt32(WParamTextBox.Text);
                }
                if (LParamTextBox.Text != "")
                {
                    lparam = Convert.ToInt32(WParamTextBox.Text);
                }

                //Selected from list
                if (CommonMessageRB.Enabled == true)
                {
                    WindowEditor.PostMessagem(Child_hwnd, message, 0, (int)IntPtr.Zero);
                }
                else
                {
                    WindowEditor.PostMessagem(Child_hwnd, Convert.ToUInt32(SpecificTextBox.Text), wparam, lparam);
                }
            }
            catch
            {
                MessageBox.Show("Format Error");
            }
        }
예제 #2
0
        private void SendMessage()
        {
            CommonEvents = (WindowGUIEditor.CommonEvents)MessageComboBox.SelectedIndex;
            uint message = getCommonEventNumber();

            int lparam = 0;
            int wparam = 0;

            try
            {
                if (WParamTextBox.Text != "")
                    wparam = Convert.ToInt32(WParamTextBox.Text);
                if (LParamTextBox.Text != "")
                    lparam = Convert.ToInt32(WParamTextBox.Text);

                //Selected from list
                if (CommonMessageRB.Enabled == true)
                    WindowEditor.PostMessagem(Child_hwnd, message, 0, (int)IntPtr.Zero);
                else
                {
                    WindowEditor.PostMessagem(Child_hwnd, Convert.ToUInt32(SpecificTextBox.Text), wparam, lparam);
                }
            }
            catch
            {
                MessageBox.Show("Format Error");
            }
        }