Skip to content

Commit

Permalink
Add solution file, add delay feature
Browse files Browse the repository at this point in the history
  • Loading branch information
vrachv committed May 4, 2022
1 parent 7c49c6a commit d2cd49c
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 1 deletion.
25 changes: 25 additions & 0 deletions DeadBySkill.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32210.238
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeadBySkill", "DeadBySkill\DeadBySkill.csproj", "{46D0D840-5CF9-4F6D-BDD7-E4326273FC57}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{46D0D840-5CF9-4F6D-BDD7-E4326273FC57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{46D0D840-5CF9-4F6D-BDD7-E4326273FC57}.Debug|Any CPU.Build.0 = Debug|Any CPU
{46D0D840-5CF9-4F6D-BDD7-E4326273FC57}.Release|Any CPU.ActiveCfg = Release|Any CPU
{46D0D840-5CF9-4F6D-BDD7-E4326273FC57}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8C1A5D82-1A24-4556-B10C-93BD7ADFC400}
EndGlobalSection
EndGlobal
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 10 additions & 1 deletion Program.cs → DeadBySkill/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ class Program
[DllImport("user32.dll")]
public static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, uint dwExtraInfo);

static async Task Main()
static async Task Main(string[] args)
{
if (args.Length == 1 && int.TryParse(args[0], out var delay))
{
Delay = delay;
Console.WriteLine("Delay: " + delay + "ms");
}
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Press key for skill check. Spacebar not recommended!");
SelectKey();
Expand Down Expand Up @@ -72,6 +77,7 @@ Mat GetArrow()
}
else
{
await Task.Delay(Delay);
keybd_event((byte)ConsoleKey, 0, 0x0001 | 0, 0);
keybd_event((byte)ConsoleKey, 0, 0x0002 | 0, 0);
goto start;
Expand All @@ -82,6 +88,7 @@ Mat GetArrow()

if (isManiac && count >= 18)
{
await Task.Delay(Delay);
keybd_event((byte)ConsoleKey, 0, 0x0001 | 0, 0);
keybd_event((byte)ConsoleKey, 0, 0x0002 | 0, 0);
}
Expand All @@ -102,6 +109,8 @@ Mat GetArrow()

private static ConsoleKey ConsoleKey;

private static int Delay = 0;

private static void SelectKey()
{
var keyInfo = Console.ReadKey(true);
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# DeadBySkill
Auto skill check for Dead By Daylight

Add delay before pressing: Run exe with Int32(ms) arg

## Requirements:
- Tested for 1920x1080
- Don't use software color filters
Expand Down

0 comments on commit d2cd49c

Please sign in to comment.