
我的c#程序模拟鼠标点击调试出问题了,下面有截图,很急,在线等答案
2个回答
展开全部
注意函数名为SetCursorPos而不是SetCursorPos1,如果想定义为SetCursorPos1则EntryPoint属性必须设置为正确值,如下面所示
[DllImport("user32.dll")]
private static extern bool SetCursorPos(int x, int y);
[DllImport("user32.dll", EntryPoint = "SetCursorPos")]
private static extern bool SetCursorPos1(int x, int y);
[STAThread]
public static void Main(string[] args)
{
int x = 0;
int y = 0;
SetCursorPos(x, y);
SetCursorPos1(x, y);
Console.ReadKey();
}
追问
大侠 ,你会c#调用大漠插件实现后台模拟鼠键吗
追答
没用过大漠插件
2013-08-25
展开全部
函数引用错误,你移动光标坐标函数好像是SetCoursePos
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询