mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
25 lines
609 B
C#
25 lines
609 B
C#
using Remotely.ScreenCast.Core.Interfaces;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Remotely.ScreenCast.Win.Services
|
|
{
|
|
public class WinClipboardService : IClipboardService
|
|
{
|
|
public void SetText(string clipboardText)
|
|
{
|
|
var thread = new Thread(() =>
|
|
{
|
|
Clipboard.SetText(clipboardText);
|
|
});
|
|
thread.SetApartmentState(ApartmentState.STA);
|
|
thread.Start();
|
|
}
|
|
}
|
|
}
|