1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Updated Keyboard (markdown)

Robert Beekman 2016-12-25 14:25:52 +01:00
parent 4d1102f2b3
commit 8be047ebdf

@ -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
```