private void btnSend_Click(object sender, System.EventArgs e)
        {
            IntPtr hHost = IPC.WinExist("Client");

            if (!ipc.Send(hHost, textBox1.Text, Convert.ToInt32(textBox2.Text)))
            {
                MessageBox.Show("Sending failed");
            }
        }
Ejemplo n.º 2
0
        private IntPtr GetReceiver()
        {
            IntPtr hReceiver = IPC.WinExist("mDesktop_api");

            if (hReceiver == IntPtr.Zero)
            {
                MessageBox.Show("Csharp.ahk doesn't exist");
            }

            return(hReceiver);
        }
        private void btnMassive_Click(object sender, System.EventArgs e)
        {
            IntPtr hHost = IPC.WinExist("Client");

            if (hHost == IntPtr.Zero)
            {
                MessageBox.Show("Client doesn't exist");
                return;
            }

            for (int i = 1; i <= 100; i++)
            {
                ipc.Send(hHost, textBox1.Text + " : " + i.ToString(), Convert.ToInt32(textBox2.Text));
            }
        }