mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Updated Keyboard (markdown)
parent
4d1102f2b3
commit
8be047ebdf
19
Keyboard.md
19
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
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user