发送鼠标右键????
^_^玩游戏太累
想弄个小东西: 每隔3秒 鼠标右键一下
嘿嘿
------解决方案--------------------VOID mouse_event( DWORD dwFlags,
DWORD dx,
DWORD dy,
DWORD dwData,
ULONG_PTR dwExtraInfo
);
------解决方案--------------------楼上的方法好使么?
------解决方案--------------------[DllImport( "user32.dll ")]
static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint dwData,
int dwExtraInfo);
const uint LEFTDOWN = 0x00000002;
const uint LEFTUP = 0x00000004;
const uint MIDDLEDOWN = 0x00000020;
const uint MIDDLEUP = 0x00000040;
const uint MOVE = 0x00000001;
const uint ABSOLUTE = 0x00008000;
const uint RIGHTDOWN = 0x00000008;
const uint RIGHTUP = 0x00000010;
private void button1_Click(object sender, EventArgs e)
{
mouse_event(RIGHTDOWN, 0, 0, 0, 0);
mouse_event(RIGHTUP, 0, 0, 0, 0);
}
------解决方案--------------------SendKeys()
------解决方案--------------------有个软件叫“模拟精灵”可以考虑试下,google
------解决方案--------------------有叫按键精灵的,我玩游戏经常用