//************************************************** //* //* Title: Fakefur Script Keybord Sample //* Make : 2006/11/09 // UpDate :2007/09/03 BugFix //* Note : ChatInput -> KeyBord Show //* NoInput -> KeyBord Hide //* //************************************************** string TypeAnim = "AnimeName"; //Type Anime FileName //**************** //* Main Program * //**************** default { //****************** //* Initialization * //****************** state_entry() { llSetLinkAlpha(LINK_SET,1.0,ALL_SIDES); } //********* //* Start * //********* //Permissions Event run_time_permissions(integer perm) { //Nop } //Wear Event attach(key id) { if (id != NULL_KEY) { //Start Keybord llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); llSetTimerEvent(0.1); }else{ llStopAnimation(TypeAnim); //Reset Keybord llResetScript(); } } //***************** //* KeyBord Check * //***************** timer() { integer Status = llGetAgentInfo(llGetOwner()); //****************** //* Key Input Find * //****************** if (Status & AGENT_TYPING){ //**************** //* KeyBord Show * //**************** llSetLinkAlpha(LINK_SET,1.0,ALL_SIDES); //**************** //* KeyTypeAnime * //**************** //Start Anime llStartAnimation(TypeAnim); //****************** //* KeyBord Action * //****************** //No Action //***************** //* Not Key Input * //***************** }else{ //**************** //* KeyBord Hide * //**************** llSetLinkAlpha(LINK_SET,0.0,ALL_SIDES); //**************** //* KeyTypeAnime * //**************** //Stop Anime llStopAnimation(TypeAnim); //*********************** //* KeyBord Action Stop * //*********************** //No Action } } }