From a0cf8163617f3fe74737cf65ba8bdd8f51a3afa1 Mon Sep 17 00:00:00 2001 From: C1rdec Date: Thu, 14 May 2020 22:08:58 -0400 Subject: [PATCH] Updated Winook. --- src/Lurker/Lurker.csproj | 6 +++--- src/Lurker/MouseLurker.cs | 4 +++- src/Lurker/packages.config | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Lurker/Lurker.csproj b/src/Lurker/Lurker.csproj index 2fca58c9..6301d977 100644 --- a/src/Lurker/Lurker.csproj +++ b/src/Lurker/Lurker.csproj @@ -1,6 +1,6 @@  - + Debug @@ -123,7 +123,7 @@ ..\..\packages\InputSimulator.1.0.4.0\lib\net20\WindowsInput.dll - ..\..\packages\Winook.0.1.0-beta3\lib\net45\Winook.dll + ..\..\packages\Winook.0.1.0-beta5\lib\net45\Winook.dll @@ -171,6 +171,6 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + \ No newline at end of file diff --git a/src/Lurker/MouseLurker.cs b/src/Lurker/MouseLurker.cs index ca440dbb..f54abec4 100644 --- a/src/Lurker/MouseLurker.cs +++ b/src/Lurker/MouseLurker.cs @@ -39,9 +39,11 @@ public class MouseLurker : IDisposable /// The settings service. public MouseLurker(Process process, SettingsService settingsService) { + var is64BitProcess = process.ProcessName.Contains("64"); + this._settingsService = settingsService; this._simulator = new InputSimulator(); - this._mouseHook = new MouseHook(process); + this._mouseHook = new MouseHook(process.Id, is64BitProcess ? ProcessBitness.Is64Bit : ProcessBitness.Is32Bit); this._mouseHook.LeftButtonUp += this.MouseHook_LeftButtonUp; this._mouseHook.Install(); } diff --git a/src/Lurker/packages.config b/src/Lurker/packages.config index b6bd50ca..6580c78b 100644 --- a/src/Lurker/packages.config +++ b/src/Lurker/packages.config @@ -25,5 +25,5 @@ - + \ No newline at end of file