mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Direct access 1 click
This commit is contained in:
11
AppApi.cs
11
AppApi.cs
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user