返回提交历史
Modified
README.md
+5
-5
Renamed
XFEExtension.NetCore.InputSimulator.sln
+1
-1
Renamed
XFEExtension.NetCore.InputSimulator/InputSimulator.cs
+1
-1
Renamed
XFEExtension.NetCore.InputSimulator/MouseButton.cs
+1
-1
Renamed
XFEExtension.NetCore.InputSimulator/ScreenPosition.cs
+1
-1
Renamed
XFEExtension.NetCore.InputSimulator/XFEExtension.NetCore.InputSimulator.csproj
+1
-1
XFEstudio/XFEExtension.NetCore.InputSimulator
正式将XFE各类拓展更名为XFEExtension
d041c1e
代码差异
6 个文件
+10
-10
@@ -1,4 +1,4 @@
1
# XFE各类拓展.NetCore.InputSimulator
1
# XFEExtension.NetCore.InputSimulator
2
2
3
3
## 简介
4
4
@@ -9,7 +9,7 @@ InputSimulator是一个简单的模拟键盘输入的包,其中包含了模拟
9
9
### 模拟键盘输入
10
10
11
11
```csharp
12
using XFE各类拓展.NetCore.InputSimulator;
12
using XFEExtension.NetCore.InputSimulator;
13
13
14
14
InputSimulator.PressKey('X');//按下X按键
15
15
InputSimulator.InputKeys("XFE");//顺序按下 X、F、E 按键
@@ -18,7 +18,7 @@ InputSimulator.InputKeys("XFE");//顺序按下 X、F、E 按键
18
18
### 模拟鼠标移动
19
19
20
20
```csharp
21
using XFE各类拓展.NetCore.InputSimulator;
21
using XFEExtension.NetCore.InputSimulator;
22
22
23
23
InputSimulator.Move(100, 100);//使得鼠标从当前位置相对移动 100 x 100 个像素(相对于鼠标指针的当前位置)
24
24
InputSimulator.LocateTo(1900, 202);//使得鼠标移动至绝对坐标 1900,202 的位置处(相对于整个屏幕的位置)
@@ -29,7 +29,7 @@ InputSimulator.LocateTo(ScreenPosition.TopLeft);//使得鼠标移动至屏幕的
29
29
### 模拟鼠标点击
30
30
31
31
```csharp
32
using XFE各类拓展.NetCore.InputSimulator;
32
using XFEExtension.NetCore.InputSimulator;
33
33
34
34
InputSimulator.MouseClick(MouseButton.Left);//模拟鼠标左键点击
35
35
InputSimulator.MouseWhellRoll(-800);//模拟鼠标滚轮下滑800像素
@@ -38,7 +38,7 @@ InputSimulator.MouseWhellRoll(-800);//模拟鼠标滚轮下滑800像素
38
38
### 获取信息
39
39
40
40
```csharp
41
using XFE各类拓展.NetCore.InputSimulator;
41
using XFEExtension.NetCore.InputSimulator;
42
42
43
43
var screenSize = GetScreenSize();//获取屏幕的宽和高(像素)
44
44
var mousePoint = GetMousePosition();//获取鼠标的位置
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
3
3
# Visual Studio Version 17
4
4
VisualStudioVersion = 17.8.34330.188
5
5
MinimumVisualStudioVersion = 10.0.40219.1
6
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XFE各类拓展.NetCore.InputSimulator", "XFE各类拓展.NetCore.InputSimulator\XFE各类拓展.NetCore.InputSimulator.csproj", "{A7146E68-D79B-4EB5-B334-8414656E096E}"
6
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XFEExtension.NetCore.InputSimulator", "XFEExtension.NetCore.InputSimulator\XFEExtension.NetCore.InputSimulator.csproj", "{A7146E68-D79B-4EB5-B334-8414656E096E}"
7
7
EndProject
8
8
Global
9
9
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -2,7 +2,7 @@
2
2
using System.Runtime.InteropServices;
3
3
using System.Text;
4
4
5
namespace XFE各类拓展.NetCore.InputSimulator;
5
namespace XFEExtension.NetCore.InputSimulator;
6
6
7
7
/// <summary>
8
8
/// 模拟用户输入
@@ -1,4 +1,4 @@
1
namespace XFE各类拓展.NetCore.InputSimulator;
1
namespace XFEExtension.NetCore.InputSimulator;
2
2
3
3
/// <summary>
4
4
/// 鼠标按键
@@ -1,4 +1,4 @@
1
namespace XFE各类拓展.NetCore.InputSimulator;
1
namespace XFEExtension.NetCore.InputSimulator;
2
2
3
3
/// <summary>
4
4
/// 屏幕位置
@@ -9,7 +9,7 @@
9
9
<SignAssembly>True</SignAssembly>
10
10
<AssemblyOriginatorKeyFile>..\XFEstudio.pfx</AssemblyOriginatorKeyFile>
11
11
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
12
<Title>XFE各类拓展.NetCore.InputSimulator</Title>
12
<Title>XFEExtension.NetCore.InputSimulator</Title>
13
13
<Authors>XFEstudio</Authors>
14
14
<Company>寰宇朽力网络科技</Company>
15
15
<Description>用于实现模拟键盘输入的包</Description>