Initialize Windows desktop skeleton

This commit is contained in:
Misaka
2026-05-15 20:12:07 +08:00
commit 498251ad79
12 changed files with 334 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
namespace WirelessTextSyncer.Windows.Services;
public sealed class KeyboardInjectionService : IKeyboardInjectionService
{
public void InsertText(string text)
{
if (string.IsNullOrEmpty(text))
{
return;
}
SendKeys.SendWait(text);
}
public void Backspace()
{
SendKeys.SendWait("{BACKSPACE}");
}
public void Enter()
{
SendKeys.SendWait("{ENTER}");
}
}