Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Keyboards keyboard_script  

keyboard_script

keyboard script.lsl

Category: Keyboards
By : max Case
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for keyboard_script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. keyboard_script_1.lsl
1
2 //Max Case's Free Keyboard Script 1.0 04/18/2005
3 //Feel free to reuse, etc.
4 //Please don't just resell this script. That would be lame, since I am giving it to you for free.
5 //naturally, if you build something nice off of it, sell that.
6 //Or make a nice texture you would like to sell with keyboard script, that's ok. Just leave script open to all to see.
7 //Feedback/Rates/Donations always welcome. Don't be shy.
8 //leave in the comments. they don't affect performance.
9 // – Max
10 //modded for my use - Misch Lameth
11 key owner;
12 integer status;
13
14 initialize()
15 {
16 //llOwnerSay("owner has changed, resetting");
17 //llOwnerSay("initializing...");
19 llSetTimerEvent(.7); //honestly you could make this shorter, but what would be the point? .5 seems to work nice.
20 owner = llGetOwner();
21 status = 0;
22
23 }
24
25 default
26 {
27
29 {
30 llOwnerSay("Wear me :)");
31 llOwnerSay("Thanks for shopping at SquirrelTech");
32 if(llGetOwner() != owner) //checks to see if we have changed owner
33 {
34 initialize();
35 }
36 }
37
38 on_rez(integer total_number)
39 {
40 if(llGetOwner() != owner)
41 {
42 initialize();
43 }
44 }
45
46 timer()
47 {
48 integer temp = llGetAgentInfo(owner) & AGENT_TYPING; // are we typing?
49 if(llGetAgentInfo(owner) & AGENT_TYPING) //status changed since last checked?
50 {
51 llSetLinkAlpha(LINK_SET,1.0,ALL_SIDES);//flip the status (this makes it 1 or 0, instead of AGENT_TYPING or 0)
52 llMessageLinked(LINK_SET,0,"typing","");
53 status = temp;//save the current status.
54 }
55 else
56 {
57
59 llMessageLinked(LINK_SET,0,"not_typing","");
60 }
61
62
63 }
64 }// END //

Back to the Best Free Tools in Second Life and OpenSim.