C#模拟鼠标操作(移动 单击 双击等很多操作)

上传者: xiaobingge2018 | 上传时间: 2021-07-12 14:04:29 | 文件大小: 218KB | 文件类型: ZIP
WinAPI-Wrapper 模拟鼠标点击 用于模拟鼠标移动、点击、窗口操作等的Windows API包装器类。 API 下面是一些可用的方法的总结。有更多的方法和类,比下面列出的要多,但目的是要大致了解包装器能做什么。要查看关于特定方法的详细信息和参数的详细信息,请查看代码本身,因为它的注释很好。 Mouse.cs public static void LeftClick(); public static void RightClick(); public static void MiddleClick(); public static void LeftDown(); public static void LeftUp(); public static void RightDown(); public static void RightUp(); public static void MiddleDown(); public static void MiddleUp(); public static void Move(int x, int y); public static void LeftDrag(Point point1, Point point2, int interval, int lag); Window.cs public static bool DoesExist(string windowTitle); public static IntPtr Get(string windowTitle); public static IntPtr GetFocused(); public static void SetFocused(IntPtr hWnd); public static bool IsFocused(IntPtr hWnd); public static void Move(IntPtr hWnd, int x, int y); public static void Resize(IntPtr hWnd, int width, int height); public static void Hide(IntPtr hWnd); public static void Show(IntPtr hWnd); public static Rectangle GetDimensions(IntPtr hWnd); public static Size GetSize(IntPtr hWnd); public static Point GetLocation(IntPtr hWnd); public static string GetTitle(IntPtr hWnd); public static void SetTitle(IntPtr hWnd, string title); public static void Maximize(IntPtr hWnd); public static void Minimize(IntPtr hWnd); public static void Normalize(IntPtr hWnd); public static Bitmap Screenshot(IntPtr hWnd); public static void RemoveMenu(IntPtr hWnd); public static void Close(IntPtr hWnd); public static void DisableCloseButton(IntPtr hWnd); public static void DisableMaximizeButton(IntPtr hWnd); public static void DisableMinimizeButton(IntPtr hWnd); public static void EnableMouseTransparency(IntPtr hWnd); public static Point ConvertToWindowCoordinates(IntPtr hWnd, int x, int y); public static Point GetCoordinateRelativeToWindow(IntPtr hWnd); Desktop.cs public static Bitmap Screenshot(); public static void HideTaskBar(); public static void ShowTaskBar(); public static int GetWidth(); pu

文件下载

资源详情

[{"title":"( 27 个子文件 218KB ) C#模拟鼠标操作(移动 单击 双击等很多操作)","children":[{"title":"WindowsAPI","children":[{"title":"WindowsAPI.sln <span style='color:#111;'> 975B </span>","children":null,"spread":false},{"title":".vs","children":[{"title":"WindowsAPI","children":[{"title":"DesignTimeBuild","children":[{"title":".dtbcache <span style='color:#111;'> 170B </span>","children":null,"spread":false}],"spread":true},{"title":"v15","children":[{"title":".suo <span style='color:#111;'> 39.50KB </span>","children":null,"spread":false},{"title":"Server","children":[{"title":"sqlite3","children":[{"title":"storage.ide-wal <span style='color:#111;'> 663.90KB </span>","children":null,"spread":false},{"title":"storage.ide-shm <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"storage.ide <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false},{"title":"db.lock <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"WindowsAPI","children":[{"title":"Window.cs <span style='color:#111;'> 12.38KB </span>","children":null,"spread":false},{"title":"WindowsAPI.csproj <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"Desktop.cs <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"WinAPI.cs <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false},{"title":"Structs.cs <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false}],"spread":true},{"title":"Conversion.cs <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"Mouse.cs <span style='color:#111;'> 17.01KB </span>","children":null,"spread":false},{"title":"MouseDrag.cs <span style='color:#111;'> 3.11KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"WindowsAPI.dll <span style='color:#111;'> 17.00KB </span>","children":null,"spread":false},{"title":"WindowsAPI.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"WindowsAPI.csproj.FileListAbsolute.txt <span style='color:#111;'> 569B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"WindowsAPI.csprojAssemblyReference.cache <span style='color:#111;'> 10.08KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"WindowsAPI.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"WindowsAPI.dll <span style='color:#111;'> 17.00KB </span>","children":null,"spread":false},{"title":"WindowsAPI.pdb <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"Draw.cs <span style='color:#111;'> 6.45KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • cszwdn :
    还行吧,学习学习
    2020-02-16
  • csdn2020114 :
    打不开,有没有VS2008能用的
    2020-01-14

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明