Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

feeding the keyboard from LSL or Mono

Valradica Vale
Registered User
Join date: 8 Oct 2006
Posts: 11
10-06-2009 15:20
Does anyone out there know how to feed the keyboard buffer from LSL? is there a channel somewhere I can send to that will allow me to manipulate, for example, the arrow keys or feed a tab character to Secondlife? This would be amazingly helpful if I could.
---Desperate in the Metaverse ---
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
10-06-2009 18:32
do you mean llTakeControls? http://www.lslwiki.net/lslwiki/wakka.php?wakka=llTakeControls

that's only limited to a certain number of keys.

however, you could make a set of gestures that each one is triggered by a different key and will say a command for a listen event, IE;

the script could listen on a specified channel for commands from the owner by the name of the key

for each gesture you could have like you say the tab key trigger a gesture, and the gesture can make you say "tab" on the specified channel
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Valradica Vale
Registered User
Join date: 8 Oct 2006
Posts: 11
Keyboard antics
10-07-2009 03:44
No, what I am trying to do, is to be able to send characters to the keyboard buffer from scripts - so for example I want to be able to sen Ctrl-Alt-T (make transparent things visible) from a script or be able to send Tab-Tab-Tab to navigate a dialogue box. Sort of like the VB Sendkeys command.
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
10-07-2009 04:25
It isn't possible to directly manipulate a user's viewer in this way via script. There are some viewers out there though that have been edited to do things upon receiving a specific command via chat, but that seems overkill.
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)
Vance Adder
Registered User
Join date: 29 Jan 2009
Posts: 402
10-07-2009 10:00
Depending on what you want to do, there may be alternate solutions, but there are some things that you just can't do.