diff --git a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
index 908284bb987..0b59371f89f 100644
--- a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
+++ b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
@@ -37,6 +37,12 @@ public interface IPublicAPI
/// Thrown when unable to find the file specified in the command
/// Thrown when error occurs during the execution of the command
void ShellRun(string cmd, string filename = "cmd.exe");
+
+ ///
+ /// Copy Text to clipboard
+ ///
+ /// Text to save on clipboard
+ public void CopyToClipboard(string text);
///
/// Save everything, all of Flow Launcher and plugins' data and settings
diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs
index 49788bfac88..eb62733b7c7 100644
--- a/Flow.Launcher/PublicAPIInstance.cs
+++ b/Flow.Launcher/PublicAPIInstance.cs
@@ -114,6 +114,11 @@ public void ShellRun(string cmd, string filename = "cmd.exe")
var startInfo = ShellCommand.SetProcessStartInfo(filename, arguments: args, createNoWindow: true);
ShellCommand.Execute(startInfo);
}
+
+ public void CopyToClipboard(string text)
+ {
+ Clipboard.SetDataObject(text);
+ }
public void StartLoadingBar() => _mainVM.ProgressBarVisibility = Visibility.Visible;
@@ -222,4 +227,4 @@ private bool KListener_hookedKeyboardCallback(KeyEvent keyevent, int vkcode, Spe
#endregion
}
-}
\ No newline at end of file
+}