SetKeyUp (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy
New page: <onlyinclude> {{Method |name = SetKeyUp |arguments = String key |description = Simulates a release of a button on a given keyboard. |object ...
>Camoy
pretty whitespace
Line 1: Line 1:
<onlyinclude>
<onlyinclude>{{Method
{{Method
|name                = SetKeyUp
|name                = SetKeyUp
|arguments            = [[String]] key
|arguments            = [[String]] key
Line 7: Line 6:
|protected            = Yes
|protected            = Yes
}}</onlyinclude>
}}</onlyinclude>
{{clear floats}}
{{clear floats}}
==Example==
 
<pre>
{{Example|<pre>
local VU = game:GetService("VirtualUser")
local VU = game:GetService("VirtualUser")
--Using the GetService method on an instanceable service will create one if it does not exist already and it places it in its' proper location within game.
--Using the GetService method on an instanceable service will create one if it does not exist already and it places it in its' proper location within game.
VU:SetKeyUp("a")
VU:SetKeyUp("a")
--Sets the letter "a" in this case to be looked upon as not being pressed or up.
--Sets the letter "a" in this case to be looked upon as not being pressed or up.
</pre>
</pre>}}


== Limitations ==
== Limitations ==
Currently this method is locked and of no use.
*Currently this method is locked and of no use.


[[Category:Methods]]
[[Category:Methods]]

Revision as of 00:14, 26 December 2010

SetKeyUp( String key )
Returns nil
Description: Simulates a release of a button on a given keyboard.
Member of: VirtualUser


Example
local VU = game:GetService("VirtualUser")
--Using the GetService method on an instanceable service will create one if it does not exist already and it places it in its' proper location within game.
VU:SetKeyUp("a")
--Sets the letter "a" in this case to be looked upon as not being pressed or up.


Limitations

  • Currently this method is locked and of no use.