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); }
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); }
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); }