Skip to content

Commit f84cb3f

Browse files
committed
fix any bugs
1 parent cce7e20 commit f84cb3f

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

.vs/Lib_Auto_LDPlayer/v17/.suo

1.5 KB
Binary file not shown.

Lib_Auto_LDPlayer/Auto_LDPlayer.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
<Reference Include="Emgu.CV.World">
3939
<HintPath>..\..\Library\KAutoHelper V2\Update KautoHelper\Emgu.CV.World.dll</HintPath>
4040
</Reference>
41-
<Reference Include="KAutoHelper">
41+
<Reference Include="KAutoHelper, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86">
42+
<SpecificVersion>False</SpecificVersion>
4243
<HintPath>..\..\Library\KAutoHelper V2\Update KautoHelper\KAutoHelper.dll</HintPath>
4344
</Reference>
4445
<Reference Include="PresentationCore" />
@@ -56,9 +57,11 @@
5657
</Reference>
5758
</ItemGroup>
5859
<ItemGroup>
60+
<Compile Include="LDKeyEvent.cs" />
5961
<Compile Include="LDevice.cs" />
6062
<Compile Include="LDPlayer.cs" />
6163
<Compile Include="Properties\AssemblyInfo.cs" />
6264
</ItemGroup>
65+
<ItemGroup />
6366
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6467
</Project>

Lib_Auto_LDPlayer/LdAdbKeyEvent.cs renamed to Lib_Auto_LDPlayer/LDKeyEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace Auto_LDPlayer
22
{
33

4-
public enum LdAdbKeyEvent
4+
public enum LDKeyEvent
55
{
66
KEYCODE_0 = 0,
77
KEYCODE_SOFT_LEFT = 1,

Lib_Auto_LDPlayer/LDPlayer.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
using System;
1+
using KAutoHelper;
2+
using System;
23
using System.Collections.Generic;
34
using System.Diagnostics;
45
using System.Drawing;
56
using System.IO;
67
using System.Linq;
78
using System.Threading;
8-
using KAutoHelper;
99

1010
namespace Auto_LDPlayer
1111
{
12-
public class LdPlayer
12+
public class LDPlayer
1313
{
1414
public static string PathLd = @"C:\LDPlayer\LDPlayer4.0\ldconsole.exe";
1515

@@ -373,7 +373,7 @@ public static void Tap(string param, string nameOrId, int x, int y, int count =
373373
Adb(param, nameOrId, cmdCommand, 200);
374374
}
375375

376-
public static void PressKey(string param, string nameOrId, ADBKeyEvent key)
376+
public static void PressKey(string param, string nameOrId, LDKeyEvent key)
377377
{
378378
Adb(param, nameOrId, $"shell input keyevent {key}", 200);
379379
}
@@ -540,17 +540,17 @@ public static bool FindImageAndClick(string param, string nameOrId, string image
540540
// Điều Hướng
541541
public static void Back(string param, string nameOrId)
542542
{
543-
PressKey(param, nameOrId, ADBKeyEvent.KEYCODE_BACK);
543+
PressKey(param, nameOrId, LDKeyEvent.KEYCODE_BACK);
544544
}
545545

546546
public static void Home(string param, string nameOrId)
547547
{
548-
PressKey(param, nameOrId, ADBKeyEvent.KEYCODE_HOME);
548+
PressKey(param, nameOrId, LDKeyEvent.KEYCODE_HOME);
549549
}
550550

551551
public static void Menu(string param, string nameOrId)
552552
{
553-
PressKey(param, nameOrId, ADBKeyEvent.KEYCODE_APP_SWITCH);
553+
PressKey(param, nameOrId, LDKeyEvent.KEYCODE_APP_SWITCH);
554554
}
555555

556556

1.09 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a75607da0c4facf7736369f2ecdfb53f3a22f433
1+
636a374be5b761d6627d20493263467ab949d0a8

Lib_Auto_LDPlayer/obj/Release/build.force

Whitespace-only changes.

0 commit comments

Comments
 (0)