public void KatalkSend(string name, string context, bool image, string file)
        {
            SendMessage(freindsrhd, 0x000c, IntPtr.Zero, name);
            Thread.Sleep(500);
            NativeHelper.LbuttonDoubleClick(resulthd, 0, 0);
            Thread.Sleep(300);
            talkhd = FindWindow("#32770", null);
            IntPtr talktexthd = FindWindowEx(talkhd, IntPtr.Zero, "RichEdit20W", "");

            SendMessage(talktexthd, 0x000c, IntPtr.Zero, context);
            PostMessage(talktexthd, 0x0100, 0xD, 0x1C001);
            if (image == true)
            {
                Thread.Sleep(100);
                NativeHelper.LbuttonClick(talkhd, 89, 582);
                Thread.Sleep(300);
                IntPtr filehd     = FindWindow("#32770", "열기");
                IntPtr filenamehd = FindWindowEx(filehd, IntPtr.Zero, "ComboBoxEx32", "");
                Thread.Sleep(300);
                SendMessage(filenamehd, 0x000c, IntPtr.Zero, file);
                Thread.Sleep(200);
                PostMessage(filehd, 0x0100, 0xD, 0x1C001);
                Thread.Sleep(300);
            }
            Thread.Sleep(200);
            KakaotalkActive.SendMessage(talkhd, 0x0010, IntPtr.Zero, "0");
        }
Esempio n. 2
0
        public void Button1_Click(object sender, EventArgs e)
        {
            string name    = textBox1.Text;
            string context = textBox2.Text;

            katalkactive[0] = new KakaotalkActive("우리자기", "테스트");
            katalkactive[3] = new KakaotalkActive("최태운", "테스트");
        }