This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bugs implemented in last version including window selection bug…
…s, broken AFK mode and more. Now uses a more robust method of finding the smite window meaning the user no longer has to set this manually.
- Loading branch information
Showing
78 changed files
with
149 additions
and
331 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
SmiteMixerCodeGrabberCLI/bin/Release/SmiteMixerListener.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
SmiteMixerCodeGrabberCLI/bin/Release/SmiteMixerListener.pdb
Binary file not shown.
Binary file modified
BIN
+10 Bytes
(100%)
...xerCodeGrabberCLI/obj/Debug/SmiteMixerCodeGrabberCLI.csprojResolveAssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...rCodeGrabberCLI/obj/Release/SmiteMixerCodeGrabberCLI.csprojResolveAssemblyReference.cache
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
SmiteMixerCodeGrabberCLI/obj/Release/SmiteMixerListener.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
SmiteMixerCodeGrabberCLI/obj/Release/SmiteMixerListener.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SmiteMixerCodeGrabberGUI.Classes | ||
{ | ||
class ProcessInfo | ||
{ | ||
private static Process _SmiteProcess { get; set; } | ||
|
||
static ProcessInfo() | ||
{ | ||
_SmiteProcess = new Process(); | ||
} | ||
|
||
public static bool DoesSmiteProcessExist() | ||
{ | ||
return ProcessExists("Smite"); | ||
} | ||
|
||
public static Process GetSmiteProcess() | ||
{ | ||
return GetProcess("Smite"); | ||
} | ||
|
||
public static IntPtr GetSmiteWindowHandle() | ||
{ | ||
return GetSmiteProcess().MainWindowHandle; | ||
} | ||
|
||
public static string GetSmiteWindowTitle() | ||
{ | ||
return GetSmiteProcess().MainWindowTitle; | ||
} | ||
|
||
public static List<Process> GetProcessList() | ||
{ | ||
var processes = Process.GetProcesses().ToList(); | ||
return processes; | ||
} | ||
|
||
public static Process GetProcess(string pName) | ||
{ | ||
return GetProcessList().Where(x => x.ProcessName == pName).First(); | ||
} | ||
|
||
public static bool ProcessExists(Process hProcess) | ||
{ | ||
if (GetProcessList().Select(x => x.Id).Contains(hProcess.Id)) | ||
return true; | ||
return false; | ||
} | ||
|
||
public static bool ProcessExists(string pName) | ||
{ | ||
if (GetProcessList().Select(x => x.ProcessName).Contains(pName)) | ||
return true; | ||
return false; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file modified
BIN
+1.5 KB
(100%)
SmiteMixerCodeGrabberGUI/bin/Debug/Smite Mixer Code Grabber.exe
Binary file not shown.
Oops, something went wrong.