Update files
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EpisodeRenamer
|
||||
@@ -57,6 +58,7 @@ namespace EpisodeRenamer
|
||||
break;
|
||||
case "ControlC":
|
||||
Console.WriteLine("\nВыход из программы.");
|
||||
Thread.Sleep(1500);
|
||||
Environment.Exit(0);
|
||||
break;
|
||||
default:
|
||||
@@ -64,7 +66,9 @@ namespace EpisodeRenamer
|
||||
}
|
||||
};
|
||||
hotkeyListener.OnError += (ex) => Console.WriteLine($"Ошибка: {ex.Message}");
|
||||
hotkeyListener.RegisterCombination("ControlC", new[] { 0x11, 0x43 });
|
||||
hotkeyListener.RegisterCombination("ControlAltR",
|
||||
new[] { HotkeyListener.VirtualKeyCodes.VK_CONTROL, HotkeyListener.VirtualKeyCodes.VK_ALT, HotkeyListener.VirtualKeyCodes.VK_R });
|
||||
hotkeyListener.RegisterCombination("ControlC", new[] { HotkeyListener.VirtualKeyCodes.VK_CONTROL, 0x43 });
|
||||
|
||||
// Запускаем прослушивание
|
||||
await hotkeyListener.StartListeningAsync();
|
||||
|
||||
Reference in New Issue
Block a user