Direct access 1 click

This commit is contained in:
Natsumi
2022-06-28 21:48:36 +12:00
parent 02ade2a34a
commit 59bb021cd1
3 changed files with 88 additions and 71 deletions

View File

@@ -21,6 +21,7 @@ using librsync.net;
using System.Net.Sockets;
using System.Text;
using System.Collections.Generic;
using System.Threading;
namespace VRCX
{
@@ -453,6 +454,16 @@ namespace VRCX
return output;
}
public string GetClipboard()
{
var clipboard = String.Empty;
Thread thread = new Thread(() => clipboard = Clipboard.GetText());
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();
return clipboard;
}
public void SetStartup(bool enabled)
{
try