Adventure Game Studio | Forums

AGS Support => Advanced Technical Forum => Topic started by: cat on 13 Feb 2018, 12:34

Title: Copy/paste from Windows clipboard into game
Post by: cat on 13 Feb 2018, 12:34
Is it somehow possible to paste text from the clipboard into the game? Is there a plugin that can do this?

(Edit: Clarified subject. -Snarky)
Title: Re: Copy/paste from clipboard
Post by: Slasher on 13 Feb 2018, 12:46
Editor can paste text content of clipboard into Editor Labels, Speech etc etc..

Unless you mean something else?
Title: Re: Copy/paste from clipboard
Post by: cat on 13 Feb 2018, 12:51
No, I mean while playing pasting text into a textbox, for example.
Title: Re: Copy/paste from Windows clipboard into game
Post by: Crimson Wizard on 13 Feb 2018, 14:03
Not built-in, no.
I believe that would be possible to write plugin for that.
Title: Re: Copy/paste from Windows clipboard into game
Post by: Snarky on 13 Feb 2018, 15:46
Just as an FYI: This was something we were talking about for the AGS Awards client. It would be a cool functionality to have, but I don't have the bandwidth or technical experience with plugins to implement it myself. If someone wants to make a plugin for it, that would be highly appreciated! I imagine it as a plugin with one or two APIs: String Clipboard.PasteText() to get the content of the clipboard into the game, and optionally bool Clipboard.CopyText(String text) to get text from the game onto the clipboard. This also leaves the option to extend it to graphics in the future.
Title: Re: Copy/paste from Windows clipboard into game
Post by: Snarky on 30 Mar 2018, 14:12
So, I went ahead and did this: http://www.adventuregamestudio.co.uk/forums/index.php?topic=55922
;-D