W
wdl
Unregistered / Unconfirmed
GUEST, unregistred user!
我这么发的,句柄肯定没错,发送过去以后能听到机器喇叭嘟的一声
NativeWIN32_2.SendMessage(hNext, NativeWIN32.WM_KEYDOWN, NativeWIN32.VK_RETURN, IntPtr.Zero);
api声明:
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam);
常量:
public const int WM_KEYDOWN = 0x0100;
public const int VK_RETURN =0x0D;
真的挺难,不信你试试,如果能给出解决方法我再出300分!
NativeWIN32_2.SendMessage(hNext, NativeWIN32.WM_KEYDOWN, NativeWIN32.VK_RETURN, IntPtr.Zero);
api声明:
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam);
常量:
public const int WM_KEYDOWN = 0x0100;
public const int VK_RETURN =0x0D;
真的挺难,不信你试试,如果能给出解决方法我再出300分!