Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / [SOLVED] how copy buffer to array?

Author
Message
cgw
4
Years of Service
User Offline
Joined: 29th Oct 2019
Location:
Posted: 27th Aug 2020 12:04
how to copy buffer
ctrl + c
ctrl + v
in to array
os windows.

I cannot find such a command.
I want to move text from the buffer to the game in a square.
GetCharBuffer I have not tried it but it seems to me that this is not what I need.

The author of this post has marked a post as an answer.

Go to answer

Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 27th Aug 2020 13:57 Edited at: 27th Aug 2020 13:57
This post has been marked by the post author as the answer.
GetClipboardText() is probbaly what you want. It will give you a string containing any text in the clipboard buffer.

If you want the text in an array then you can use Len() and mid() and loop through and copy individual characters into your array. You can insert each character into the array with .insert().

Login to post a reply

Server time is: 2024-04-25 15:37:06
Your offset time is: 2024-04-25 15:37:06