Skip to content

Commit

Permalink
Release 4.15.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
sw3103 committed Oct 9, 2022
1 parent 4176855 commit 46748d7
Show file tree
Hide file tree
Showing 18 changed files with 353 additions and 133 deletions.
Binary file added 4x/Libraries/Windows.winmd
Binary file not shown.
2 changes: 1 addition & 1 deletion 4x/Move Mouse/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Logging.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.1" newVersion="6.0.0.1" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.2" newVersion="6.0.0.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
Expand Down
1 change: 1 addition & 0 deletions 4x/Move Mouse/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
Expand Down
54 changes: 50 additions & 4 deletions 4x/Move Mouse/Classes/Settings.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using ellabi.Actions;
using ellabi.Annotations;
using ellabi.Schedules;
using Serilog.Events;
using System;
using System.ComponentModel;
using System.Linq;
Expand Down Expand Up @@ -48,6 +49,9 @@ public class Settings : INotifyPropertyChanged
//private bool? _hookKeyEnabled;
//private Key _hookKey;
private bool? _standWithUkraine;
private bool? _pauseOnBattery;
private LogEventLevel? _logLevel;
private bool? _hideSystemTrayNotifications;

public int LowerInterval
{
Expand Down Expand Up @@ -419,7 +423,7 @@ public bool MinimiseOnStop
}
}

public bool? PreventScreenBurn
public bool PreventScreenBurn
{
get
{
Expand All @@ -433,7 +437,7 @@ public bool? PreventScreenBurn
}
}

public bool? ActiveWhenLocked
public bool ActiveWhenLocked
{
get
{
Expand All @@ -447,7 +451,7 @@ public bool? ActiveWhenLocked
}
}

public bool? ShowMoveMouseStatus
public bool ShowMoveMouseStatus
{
get
{
Expand Down Expand Up @@ -479,7 +483,7 @@ public bool StandWithUkraine
{
get
{
if (_standWithUkraine == null) _standWithUkraine = true;
if (_standWithUkraine == null) _standWithUkraine = false;
return _standWithUkraine.Value;
}
set
Expand All @@ -489,6 +493,48 @@ public bool StandWithUkraine
}
}

public bool PauseOnBattery
{
get
{
if (_pauseOnBattery == null) _pauseOnBattery = false;
return _pauseOnBattery.Value;
}
set
{
_pauseOnBattery = value;
OnPropertyChanged();
}
}

public LogEventLevel LogLevel
{
get
{
if (_logLevel == null) _logLevel = LogEventLevel.Verbose;
return _logLevel.Value;
}
set
{
_logLevel = value;
OnPropertyChanged();
}
}

public bool HideSystemTrayNotifications
{
get
{
if (_hideSystemTrayNotifications == null) _hideSystemTrayNotifications = false;
return _hideSystemTrayNotifications.Value;
}
set
{
_hideSystemTrayNotifications = value;
OnPropertyChanged();
}
}

[XmlArrayItem(Type = typeof(ActionBase)),
XmlArrayItem(Type = typeof(MoveMouseCursorAction)),
XmlArrayItem(Type = typeof(ClickMouseAction)),
Expand Down
1 change: 0 additions & 1 deletion 4x/Move Mouse/Converters/MouseStateIsSleepingConverter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using ellabi.ViewModels;
using System;
using System.Diagnostics;
using System.Globalization;
using System.Windows.Data;

Expand Down
50 changes: 31 additions & 19 deletions 4x/Move Mouse/Move Mouse.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@
<Reference Include="Microsoft.Expression.Drawing, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Expression.Drawing.3.0.0\lib\net45\Microsoft.Expression.Drawing.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.1, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.1\lib\net461\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.2, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.2\lib\net461\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="Quartz, Version=3.4.0.0, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4, processorArchitecture=MSIL">
<HintPath>..\packages\Quartz.3.4.0\lib\net472\Quartz.dll</HintPath>
<Reference Include="Quartz, Version=3.5.0.0, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4, processorArchitecture=MSIL">
<HintPath>..\packages\Quartz.3.5.0\lib\net472\Quartz.dll</HintPath>
</Reference>
<Reference Include="Serilog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\packages\Serilog.2.11.0\lib\net46\Serilog.dll</HintPath>
<HintPath>..\packages\Serilog.2.12.0\lib\net47\Serilog.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.File, Version=5.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\packages\Serilog.Sinks.File.5.0.0\lib\net45\Serilog.Sinks.File.dll</HintPath>
Expand Down Expand Up @@ -233,20 +233,20 @@
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="Xceed.Wpf.AvalonDock, Version=4.3.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.4.3.0\lib\net40\Xceed.Wpf.AvalonDock.dll</HintPath>
<Reference Include="Xceed.Wpf.AvalonDock, Version=4.4.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.4.4.0\lib\net40\Xceed.Wpf.AvalonDock.dll</HintPath>
</Reference>
<Reference Include="Xceed.Wpf.AvalonDock.Themes.Aero, Version=4.3.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.4.3.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.Aero.dll</HintPath>
<Reference Include="Xceed.Wpf.AvalonDock.Themes.Aero, Version=4.4.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.4.4.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.Aero.dll</HintPath>
</Reference>
<Reference Include="Xceed.Wpf.AvalonDock.Themes.Metro, Version=4.3.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.4.3.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.Metro.dll</HintPath>
<Reference Include="Xceed.Wpf.AvalonDock.Themes.Metro, Version=4.4.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.4.4.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.Metro.dll</HintPath>
</Reference>
<Reference Include="Xceed.Wpf.AvalonDock.Themes.VS2010, Version=4.3.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.4.3.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.VS2010.dll</HintPath>
<Reference Include="Xceed.Wpf.AvalonDock.Themes.VS2010, Version=4.4.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.4.4.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.VS2010.dll</HintPath>
</Reference>
<Reference Include="Xceed.Wpf.Toolkit, Version=4.3.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.4.3.0\lib\net40\Xceed.Wpf.Toolkit.dll</HintPath>
<Reference Include="Xceed.Wpf.Toolkit, Version=4.4.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL">
<HintPath>..\packages\Extended.Wpf.Toolkit.4.4.0\lib\net40\Xceed.Wpf.Toolkit.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -591,6 +591,9 @@
<ItemGroup>
<Resource Include="Resources\GitHub_Light_64x64.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\Mouse-SystemTray-Battery.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand All @@ -599,18 +602,27 @@
<Target Name="AfterBuild">
</Target>
-->
<Target Name="AfterBuild">
<PropertyGroup>
<TargetUWP>..\UWP Package\Source\</TargetUWP>
</PropertyGroup>
<ItemGroup>
<Win32Binaries Include="$(TargetDir)\*" />
</ItemGroup>
<Copy SourceFiles="@(Win32Binaries)" DestinationFolder="$(TargetUWP)" />
</Target>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<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\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets'))" />
<Error Condition="!Exists('..\packages\Fody.6.6.2\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.6.2\build\Fody.targets'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.5.7.0\build\Costura.Fody.props'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets'))" />
<Error Condition="!Exists('..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.1\build\Microsoft.Extensions.Logging.Abstractions.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.1\build\Microsoft.Extensions.Logging.Abstractions.targets'))" />
<Error Condition="!Exists('..\packages\Fody.6.6.3\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.6.3\build\Fody.targets'))" />
<Error Condition="!Exists('..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.2\build\Microsoft.Extensions.Logging.Abstractions.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.2\build\Microsoft.Extensions.Logging.Abstractions.targets'))" />
</Target>
<Import Project="..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
<Import Project="..\packages\Fody.6.6.2\build\Fody.targets" Condition="Exists('..\packages\Fody.6.6.2\build\Fody.targets')" />
<Import Project="..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets" Condition="Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets')" />
<Import Project="..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.1\build\Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.1\build\Microsoft.Extensions.Logging.Abstractions.targets')" />
<Import Project="..\packages\Fody.6.6.3\build\Fody.targets" Condition="Exists('..\packages\Fody.6.6.3\build\Fody.targets')" />
<Import Project="..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.2\build\Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.2\build\Microsoft.Extensions.Logging.Abstractions.targets')" />
</Project>
3 changes: 2 additions & 1 deletion 4x/Move Mouse/Move Mouse.csproj.user
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartArguments>/WorkingDirectory:"C:\Temp"</StartArguments>
<StartArguments>
</StartArguments>
</PropertyGroup>
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>
Expand Down
4 changes: 2 additions & 2 deletions 4x/Move Mouse/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.14.0.0")]
[assembly: AssemblyFileVersion("4.14.0.0")]
[assembly: AssemblyVersion("4.15.0.0")]
[assembly: AssemblyFileVersion("4.15.0.0")]
12 changes: 11 additions & 1 deletion 4x/Move Mouse/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions 4x/Move Mouse/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@
<data name="Mouse_SystemTray_Active" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Mouse-SystemTray-Active.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Mouse_SystemTray_Battery" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Mouse-SystemTray-Battery.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Mouse_SystemTray_Execute" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Mouse-SystemTray-Execute.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions 4x/Move Mouse/StaticCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ public static void CreateLog()
}
}

public static void EnableLog()
public static void EnableLog(LogEventLevel minimumLevel)
{
try
{
_loggingLevelSwitch.MinimumLevel = (int)LogEventLevel.Verbose;
_loggingLevelSwitch.MinimumLevel = minimumLevel;
Logger?.Here().Debug(LogPath);
}
catch (Exception ex)
Expand Down
Loading

0 comments on commit 46748d7

Please sign in to comment.