Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: cat on Tue 13/02/2018 12:34:20

Title: Copy/paste from Windows clipboard into game
Post by: cat on Tue 13/02/2018 12:34:20
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 Tue 13/02/2018 12:46:29
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 Tue 13/02/2018 12:51:42
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 Tue 13/02/2018 14:03:30
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 Tue 13/02/2018 15:46:21
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 Fri 30/03/2018 14:12:08
So, I went ahead and did this: http://www.adventuregamestudio.co.uk/forums/index.php?topic=55922
;-D