Skip to content

Commit

Permalink
Updated Winook.
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed May 15, 2020
1 parent 8967845 commit a0cf816
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Lurker/Lurker.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\packages\Winook.0.1.0-beta3\build\Winook.props" Condition="Exists('..\..\packages\Winook.0.1.0-beta3\build\Winook.props')" />
<Import Project="..\..\packages\Winook.0.1.0-beta5\build\Winook.props" Condition="Exists('..\..\packages\Winook.0.1.0-beta5\build\Winook.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -123,7 +123,7 @@
<HintPath>..\..\packages\InputSimulator.1.0.4.0\lib\net20\WindowsInput.dll</HintPath>
</Reference>
<Reference Include="Winook, Version=0.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Winook.0.1.0-beta3\lib\net45\Winook.dll</HintPath>
<HintPath>..\..\packages\Winook.0.1.0-beta5\lib\net45\Winook.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -171,6 +171,6 @@
<PropertyGroup>
<ErrorText>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}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\Winook.0.1.0-beta3\build\Winook.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Winook.0.1.0-beta3\build\Winook.props'))" />
<Error Condition="!Exists('..\..\packages\Winook.0.1.0-beta5\build\Winook.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Winook.0.1.0-beta5\build\Winook.props'))" />
</Target>
</Project>
4 changes: 3 additions & 1 deletion src/Lurker/MouseLurker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ public class MouseLurker : IDisposable
/// <param name="settingsService">The settings service.</param>
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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Lurker/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
<package id="StyleCop.Analyzers" version="1.1.118" targetFramework="net48" developmentDependency="true" />
<package id="System.Collections.Immutable" version="1.5.0" targetFramework="net472" />
<package id="System.Interactive.Async" version="3.2.0" targetFramework="net48" />
<package id="Winook" version="0.1.0-beta3" targetFramework="net48" />
<package id="Winook" version="0.1.0-beta5" targetFramework="net48" />
</packages>

0 comments on commit a0cf816

Please sign in to comment.