sendmessage C# 鼠标点击
privatevoidKZ_Tick(objectsender,EventArgse){KZ.Stop();d=0;SendMessage(myIntPtr,WM_LBU...
private void KZ_Tick(object sender, EventArgs e)
{
KZ.Stop();
d = 0;
SendMessage(myIntPtr, WM_LBUTTONDOWN,X, Y);
SendMessage(myIntPtr, WM_LBUTTONUP,X ,Y );
F6.Start();
KZ.Start();
}
这里为什么老是说当前上下文中不存在名称 WM_LBUTTONDOWN和当前上下文中不存在名称 WM_LBUTTONUP 展开
{
KZ.Stop();
d = 0;
SendMessage(myIntPtr, WM_LBUTTONDOWN,X, Y);
SendMessage(myIntPtr, WM_LBUTTONUP,X ,Y );
F6.Start();
KZ.Start();
}
这里为什么老是说当前上下文中不存在名称 WM_LBUTTONDOWN和当前上下文中不存在名称 WM_LBUTTONUP 展开
展开全部
WM_LBUTTONDOWN和WM_LBUTTONUP是sdk种定义的常量,c/c++专用,磨哗所以你得自瞎纳行己重定义
从网上粘来的,参考下
public enum WMessages : int
{
WM_LBUTTONDOWN = 0x201, //Left mousebutton down
WM_LBUTTONUP = 0x202, //Left mousebutton up
WM_LBUTTONDBLCLK = 0x203, //Left mousebutton doubleclick
WM_RBUTTONDOWN = 0x204, //Right mousebutton down
WM_RBUTTONUP = 0x205, //茄升Right mousebutton up
WM_RBUTTONDBLCLK = 0x206, //Right mousebutton doubleclick
WM_KEYDOWN = 0x100, //Key down
WM_KEYUP = 0x101, //Key up
}
从网上粘来的,参考下
public enum WMessages : int
{
WM_LBUTTONDOWN = 0x201, //Left mousebutton down
WM_LBUTTONUP = 0x202, //Left mousebutton up
WM_LBUTTONDBLCLK = 0x203, //Left mousebutton doubleclick
WM_RBUTTONDOWN = 0x204, //Right mousebutton down
WM_RBUTTONUP = 0x205, //茄升Right mousebutton up
WM_RBUTTONDBLCLK = 0x206, //Right mousebutton doubleclick
WM_KEYDOWN = 0x100, //Key down
WM_KEYUP = 0x101, //Key up
}
展开全部
WM_LBUTTONDOWN和WM_LBUTTONUP是sdk种定义的弊者常尘芹量,c/c++专用,所以你得自己重定义
从网上粘来的,参考下
public enum WMessages : int
{
WM_LBUTTONDOWN = 0x201, //Left mousebutton down
WM_LBUTTONUP = 0x202, //Left mousebutton up
WM_LBUTTONDBLCLK = 0x203, //Left mousebutton doubleclick
WM_RBUTTONDOWN = 0x204, //Right mousebutton down
WM_RBUTTONUP = 0x205, //Right mousebutton up
WM_RBUTTONDBLCLK = 0x206, //Right mousebutton doubleclick
WM_KEYDOWN = 0x100, //Key down
WM_KEYUP = 0x101, //派卜毕Key up
}
从网上粘来的,参考下
public enum WMessages : int
{
WM_LBUTTONDOWN = 0x201, //Left mousebutton down
WM_LBUTTONUP = 0x202, //Left mousebutton up
WM_LBUTTONDBLCLK = 0x203, //Left mousebutton doubleclick
WM_RBUTTONDOWN = 0x204, //Right mousebutton down
WM_RBUTTONUP = 0x205, //Right mousebutton up
WM_RBUTTONDBLCLK = 0x206, //Right mousebutton doubleclick
WM_KEYDOWN = 0x100, //Key down
WM_KEYUP = 0x101, //派卜毕Key up
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询