Microsoft Visual Studio 2010做的C#实时监控鼠标位置和左键点击时的位置实例,主要代码: public class MouseHook { private Point point; private Point Point { get { return point; } set { if (point != value) { point = value; if (MouseMoveEvent != null) { var e = new MouseEventArgs(MouseButtons.None, 0, point.X, point.Y, 0); MouseMoveEvent(this, e); } } } } private int hHook; private const int WM_LBUTTONDOWN = 0x201; public const int WH_MOUSE_LL = 14; public Win32Api.HookProc hProc; public MouseHook() { this.Point = new Point(); } public int SetHook() { hProc = new Win32Api.HookProc(MouseHookProc); hHook = Win32Api.SetWindowsHookEx(WH_MOUSE_LL, hProc, IntPtr.Zero, 0); return hHook; } public void UnHook() { Win32Api.UnhookWindowsHookEx(hHook); } private int MouseHookProc(int nCode, IntPtr wParam, IntPtr lParam) { Win32Api.MouseHookStruct MyMouseHookStruct = (Win32Api.MouseHookStruct)Marshal.PtrToStructure(lParam, typeof(Win32Api.MouseHookStruct)); if (nCode < 0) { return Win32Api.CallNextHookEx(hHook, nCode, wParam, lParam); } else { if (MouseClickEvent != null) { MouseButtons button = MouseButtons.None; int clickCount = 0; switch ((Int32)wParam) { case WM_LBUTTONDOWN: button = MouseButtons.Left; clickCount = 1; break; } var e = new MouseEventArgs(button, clickCount, point.X, point.Y, 0); MouseClickEvent(this, e); } this.Point = new Point(MyMouseHookStruct.pt.x, MyMouseHookStruct.pt.y); return Win32Api.CallNextHookEx(hHook, nCode, wParam, lParam); } } public delegate void MouseMoveHandler(object sender, MouseEventArgs e); public event MouseMoveHandler MouseMoveEvent; public delegate void MouseClickHandler(object sender, MouseEventArgs e); public event MouseClickHandler MouseClickEvent; }
2021-08-20 15:46:57 44KB VS2010 实时监控 鼠标
1
左江科技:2021年半年度报告.PDF
2021-08-19 09:17:58 2.24MB 行业
深度学习与计算成像 综述
2021-08-17 13:23:47 17.53MB 光学 DL
1
行业资料-交通装置-一种摩托车发动机左曲轴箱前盖.exe
行业资料-设备研制-一种半潜式多浮子波浪能转换装置.zip
很实用。ARCGIS中文字体、平滑线插件(支持左斜体等)
2021-08-13 19:15:18 1.83MB ARCGIS
1
行业资料-交通装置-一种城市交通智能禁左系统.exe
matlab 代码左移 NMT 自己的注释 在源代码上添加了中文注释,注释基本参考。 tensorflow/nmt项目的代码结构不太清晰,会帮助理解。 训练数据采用了我们自己收集的平行语料库(中日为22万,中韩为39万),训练好的模型分别保存在model中对应的文件夹里(best-bleu:日中为19.9)。 [原Readme.md](#Neural Machine Translation (seq2seq) Tutorial) 环境的配置 Python3.6 tensorflow-gpu:1.12.0(TF2.0更新比较大,运行会报错,需要兼容1.0的语法引用方式修改一下) 直接使用我的模型 (以日语到中文为例,训练好的模型在model/jp2zh_model) git clone 项目: git clone https://github.com/adorableChowhound/nmt.git 进入项目: cd nmt 把需要翻译的句子输入到model/jp2zh_model/my_infer_file.jp: cat > model/jp2zh_model/my_infer_f
2021-08-10 11:54:51 124.6MB 系统开源
1
arcgis下图斑自上而下,从左到右编号
2021-08-07 17:17:47 199KB 图斑编号
1
左栏全屏漂亮摄影师官网模板下载4892.zip
2021-08-07 15:22:06 3.07MB html5