NetAutoGUI/IMouseController.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace NetAutoGUI
{
	public interface IMouseController
	{
		/// <summary>
		/// Get resolution size of default screen.
		/// </summary>
		/// <returns></returns>
		public Size Size();

		/// <summary>
		/// Get current location of the mouse cursor 
		/// </summary>
		/// <returns></returns>
		public Location Position();

		/// <summary>
		/// Check if XY coordinates are on the screen
		/// </summary>
		/// <param name="x"></param>
		/// <param name="y"></param>
		/// <returns></returns>
		public bool OnScreen(int x, int y);

		/// <summary>
		/// Move the mouse cursor to the specific location
		/// </summary>
		/// <param name="x"></param>
		/// <param name="y"></param>
		public void MoveTo(int x, int y);

		/// <summary>
		/// gradually move to the location, durationInSeconds is used for the duration (in seconds) the movement should take.
		/// </summary>
		/// <param name="x"></param>
		/// <param name="y"></param>
		/// <param name="durationInSeconds"></param>
		/// <param name="tweeningType"></param>
		public void MoveTo(int x, int y, double durationInSeconds, TweeningType tweeningType = TweeningType.Linear);

		/// <summary>
		/// move the mouse cursor over a few pixels relative to its current position
		/// </summary>
		/// <param name="offsetX"></param>
		/// <param name="offsetY"></param>
		public void Move(int offsetX, int offsetY);

		/// <summary>
		///  simulates a single, left-button mouse click at the mouse’s current position. 
		/// </summary>
		/// <param name="x">move mouse to (x,y), then click the button</param>
		/// <param name="y"></param>
		public void Click(int? x = null, int? y = null, MouseButtonType button = MouseButtonType.Left, int clicks = 1, double interval = 0);

		public void DoubleClick(int? x = null, int? y = null, MouseButtonType button = MouseButtonType.Left, double interval = 0);

		public void MouseDown(int? x = null, int? y = null, MouseButtonType button = MouseButtonType.Left);
		public void MouseUp(int? x = null, int? y = null, MouseButtonType button = MouseButtonType.Left);

		/// <summary>
后面还有 6 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。