diff --git a/Keyboard.md b/Keyboard.md index 268c488..38f2327 100644 --- a/Keyboard.md +++ b/Keyboard.md @@ -24,4 +24,23 @@ PressKeys(string keys); #### Example: ```lua Keyboard.PressKeys("Hello!"); +``` + +### GetKeyPosition +If found, returns the location of the given key. For a list of available keys see [this article](https://msdn.microsoft.com/en-us/library/system.windows.forms.keys(v=vs.110).aspx#Anchor_1). +_Note:_ This is case-sensitive +#### Syntax: +```lua +GetKeyPosition(string key); +``` + +#### Example: +```lua +local keyPosition = Keyboard.GetKeyPosition("A"); +print("Position X: ".. keyPosition.X .. ", Y: " .. keyPosition.Y); +``` + +#### Result: +``` +Position X: 5, Y: 4 ``` \ No newline at end of file