日期:2014-05-18 浏览次数:21244 次
IntPtr a = FindWindow("VoiceRoomForm", null);//查找窗口 IntPtr b = FindWindowEx(a, IntPtr.Zero, "ExtraEd", null);//查找子控件 if (b != IntPtr.Zero) { ShowWindow(a, 3); SetForegroundWindow(b); keybd_event(0x11, 0, 0, 0); keybd_event(86,0,0,0); keybd_event(86,0,0x2,0); keybd_event(0x11, 0, 0x2, 0); }