예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            IntPtr ptr = Msg.FindWindow(null, "宣传播放系统");

            if (IntPtr.Zero == ptr) return;

            Msg.myParam tmp = new Msg.myParam();
            //Msg.SendMessage(ptr, Msg.INT_MSG_GoOnPlayingAfterPPT, 1, ref tmp);//发送消息
            Msg.PostMessage(ptr, Msg.EXT_MSG_PlayNotice, 1, ref tmp);
        }
예제 #2
0
        private void bgWorker_RunTask_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            IntPtr ptr = Msg.FindWindow(null, "Form_Start");
            if (IntPtr.Zero == ptr) return;

            Msg.myParam tmp = new Msg.myParam();
            Msg.PostMessage(ptr, 0x10, 0, ref tmp);
        }
예제 #3
0
        private void checkBox_ftp_CheckedChanged(object sender, EventArgs e)
        {
            IntPtr ptr = Msg.FindWindow(null, "Advanced FTP Server :: Main Form");

            if (IntPtr.Zero == ptr) return;

            Msg.myParam tmp = new Msg.myParam();
            Msg.PostMessage(ptr, Msg.INT_MSG_Ftp, 1, ref tmp);
        }