Access to the system clipboard

Access to the system clipboard

Requests for features in the spring code.

Moderator: Moderators

Post Reply
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Access to the system clipboard

Post by gajop »

Can we get two lua functions for using the clipboard?
Something that wraps around:
http://wiki.libsdl.org/SDL_GetClipboardText (unsynced read)
http://wiki.libsdl.org/SDL_SetClipboardText (unsynced ctrl)
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Access to the system clipboard

Post by Jools »

That would allow communicating between spring and WSR Macros (speech recognition), for instance.

Speech Recognition is cool if it works, but it doesn't usually work. But if it would work, it would be cool.
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Access to the system clipboard

Post by Anarchid »

i think you can already use voice commands in ZKL.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Access to the system clipboard

Post by Jools »

Well, something must recognise the speech: ZKL has its own SR engine? Maybe you just mean text to speech.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Access to the system clipboard

Post by gajop »

It's great that you're coming up of obscure reasons why you'd use it, but the most obvious one is copy/pasting text (usually in player communication) in and out of Spring.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Access to the system clipboard

Post by Jools »

That's why I'm an ENTP :)
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Access to the system clipboard

Post by abma »

uh-oh, spring can steal passwords from the clipboard.

these functions are missing:

- remote control computer
- remote shell
- task scheduler
- p2p network functions
- tor client

;)
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Access to the system clipboard

Post by gajop »

neat, thanks jk :)
abma wrote:uh-oh, spring can steal passwords from the clipboard.
Much like any other program on your PC. If we cared about spring passwords (assuming those are most likely to be in your clipboard), we wouldn't have an unencrypted lobby server communication and we wouldn't use md5 password hashes.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Access to the system clipboard

Post by abma »

my post wasn't so serious...

yes, we need ssl/tls for all stuff, but as long as there are non-spring websites on this server its difficult to apply. not all browsers support SNI: http://en.wikipedia.org/wiki/Server_Name_Indication
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Access to the system clipboard

Post by gajop »

abma wrote:my post wasn't so serious...
I can't be too sure :P
Spring generally attempts to be safe first (not a bad thing), with closed filesystem and whitelist-based (luasockets) network access.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Access to the system clipboard

Post by Google_Frog »

Spring could already steal passwords. Now Lua can too!
Post Reply

Return to “Feature Requests”