我想实现一个鼠标双击一个应用程序的功能。
麻烦大神帮我看看,哪有问题。
include
include
void main()
{
SetCursorPos(40, 40); // 设置鼠标位置
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
}