Author Topic: Copy/paste from Windows clipboard into game  (Read 669 times)

cat

  • Mittens Baronet
  • AGS Baker
  • Angelica Crosley
    • cat worked on a game that was nominated for an AGS Award!
      cat worked on a game that won an AGS Award!
Copy/paste from Windows clipboard into game
« 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)
« Last Edit: 13 Feb 2018, 13:42 by Snarky »

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • Lifetime Achievement Award Winner
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Re: Copy/paste from clipboard
« Reply #1 on: 13 Feb 2018, 12:46 »
Editor can paste text content of clipboard into Editor Labels, Speech etc etc..

Unless you mean something else?

cat

  • Mittens Baronet
  • AGS Baker
  • Angelica Crosley
    • cat worked on a game that was nominated for an AGS Award!
      cat worked on a game that won an AGS Award!
Re: Copy/paste from clipboard
« Reply #2 on: 13 Feb 2018, 12:51 »
No, I mean while playing pasting text into a textbox, for example.

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Copy/paste from Windows clipboard into game
« Reply #3 on: 13 Feb 2018, 14:03 »
Not built-in, no.
I believe that would be possible to write plugin for that.

Snarky

  • Global Moderator
  • Mittens Earl
  • Private Insultant
    • I can help with proof reading
    •  
    • I can help with translating
    •  
Re: Copy/paste from Windows clipboard into game
« Reply #4 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.

Snarky

  • Global Moderator
  • Mittens Earl
  • Private Insultant
    • I can help with proof reading
    •  
    • I can help with translating
    •