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)
Access to the system clipboard
Moderator: Moderators
Re: Access to the system clipboard
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.
Speech Recognition is cool if it works, but it doesn't usually work. But if it would work, it would be cool.
Re: Access to the system clipboard
i think you can already use voice commands in ZKL.
Re: Access to the system clipboard
Well, something must recognise the speech: ZKL has its own SR engine? Maybe you just mean text to speech.
Re: Access to the system clipboard
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.
Re: Access to the system clipboard
That's why I'm an ENTP :)
Re: Access to the system clipboard
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
these functions are missing:
- remote control computer
- remote shell
- task scheduler
- p2p network functions
- tor client
Re: Access to the system clipboard
neat, thanks jk :)
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 wrote:uh-oh, spring can steal passwords from the clipboard.
Re: Access to the system clipboard
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
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
Re: Access to the system clipboard
I can't be too sureabma wrote:my post wasn't so serious...
Spring generally attempts to be safe first (not a bad thing), with closed filesystem and whitelist-based (luasockets) network access.
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: Access to the system clipboard
Spring could already steal passwords. Now Lua can too!