Thanks in advance 
These forums are CLOSED. Please visit the new forums HERE
Object appears when typing. |
|
|
Ross Stringer
SLFD Firefighter
Join date: 7 Feb 2007
Posts: 130
|
03-28-2008 05:36
Hi, ive seen lots of these items, laptops, wierd sci-fi things, that appear when you type, i want a simple one, which changes the texture on an object when typing, and changes back to alpha when you finish typing
Thanks in advance ![]() |
|
Kidd Krasner
Registered User
Join date: 1 Jan 2007
Posts: 1,938
|
03-28-2008 06:37
Are you asking to find an attachment or script that does this? If so, ask in the products wanted forum (though you could probably ask in the Resident Answers forum without upsetting people).
If you're asking for help in writing the script yourself, then check out llSetPrimitiveParams. |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
03-28-2008 09:19
you may also check some of the freebie stores, since there were one or two free 'virtual keyboard' scripts floating around, and I believe at least one was readable. it'd give you a place to start from.
I haven't looked at one in a while, but I'm thinking timered loop to check animation state for typing, if found, go to visible mode, otherwise go to invisible mode... _____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Galena Qi
Registered User
Join date: 9 Sep 2006
Posts: 249
|
03-28-2008 09:38
There is a typing override script posted here:
http://www.lovelymachine.com/Dolmere/2006/09/keyboard_override_typing_anima.html I had to tinker with it to get it to work. |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
03-28-2008 10:34
The key to making something happen while typing is to either:
1.) Check for llGetAgentInfo() & AGENT_TYPING 2.) Test for the typing animation playing (may not work if your script or another overrides the animation by stopping it rather than playing another over the top). For this you'll need llGetAnimationList() and the typing animation's key, which you can find here: http://www.lslwiki.net/lslwiki/wakka.php?wakka=ClientAssetKeys http://www.lslwiki.net/lslwiki/wakka.php?wakka=llGetAgentInfo http://www.lslwiki.net/lslwiki/wakka.php?wakka=llGetAnimationList http://www.lslwiki.net/lslwiki/wakka.php?wakka=llListFindList |
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
03-29-2008 23:14
I wrote this ages ago for a chat keyboard I made... I give away the chat keyboard all the time, so, why not the script.. right?
default { on_rez(integer dummy) { llResetScript(); } state_entry () { llSetTimerEvent(.005); } timer() { if (llGetAgentInfo(llGetOwner()) & AGENT_TYPING) { llSetAlpha(1.0, ALL_SIDES); // set entire prim 100% visible. } else { llSetAlpha(0.0, ALL_SIDES); // set entire prim 100% invisible. } } } just drop the script in each prim that you want to go alpha when you're typing, works on attached or unattached objects. |
|
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
|
03-30-2008 11:19
Is a timer event of 0.005 really necessary? Mine uses a time of 1.0 (one second) and even that sometimes feels excessive. You only really need it to come up when typing for long periods, as short periods aren't really worth it.
_____________________
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) |
|
Regan Flasheart
Adulterated content
Join date: 25 Nov 2005
Posts: 25
|
03-31-2008 03:56
One thing to bear in mind with llGetAgentInfo is that one of the debug settings (I believe it was explained by Torley in one of his instructional videos) turns all typing animations and sounds off. This in turn breaks any scripts that rely on this. In my limited experience, scripts that simply 'cancel' the typing animation seem to play nicely, possibly due to the fact that they let the animation play for a fraction of a second before cutting it off *shrug*
I spent half an hour trying to work out why one of my customers couldn't get a product to work, only to find she had this debug setting activated (or deactivated). |
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
03-31-2008 11:12
One thing to bear in mind with llGetAgentInfo is that one of the debug settings (I believe it was explained by Torley in one of his instructional videos) turns all typing animations and sounds off. This in turn breaks any scripts that rely on this. In my limited experience, scripts that simply 'cancel' the typing animation seem to play nicely, possibly due to the fact that they let the animation play for a fraction of a second before cutting it off *shrug* I spent half an hour trying to work out why one of my customers couldn't get a product to work, only to find she had this debug setting activated (or deactivated). I dont see why someone would use a chat keyboard if their typing animation was overridden. What would be the point? |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
04-01-2008 10:44
Might want to use a custom typing animation.
|