diff --git a/BizHawk.MultiClient/LuaImplementation.cs b/BizHawk.MultiClient/LuaImplementation.cs index 15dd6a0776..16b58d197e 100644 --- a/BizHawk.MultiClient/LuaImplementation.cs +++ b/BizHawk.MultiClient/LuaImplementation.cs @@ -512,6 +512,8 @@ namespace BizHawk.MultiClient "screenwidth", "screenheight", "screenshot", + "screenshottoclipboard", + "setscreenshotosd", }; public static string[] FormsFunctions = new string[] @@ -2054,6 +2056,16 @@ namespace BizHawk.MultiClient } } + public void client_screenshottoclipboard() + { + Global.MainForm.TakeScreenshotToClipboard(); + } + + public void client_setscreenshotosd(bool value) + { + Global.Config.Screenshot_CaptureOSD = value; + } + public int client_screenwidth() { return Global.RenderPanel.NativeSize.Width; diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index f7d314f3b5..21158e52ed 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -2469,7 +2469,7 @@ namespace BizHawk.MultiClient return image; } - void TakeScreenshotToClipboard() + public void TakeScreenshotToClipboard() { using (var img = Global.Config.Screenshot_CaptureOSD ? CaptureOSD() : MakeScreenshotImage()) {