Skip to content

Commit fc768bf

Browse files
docs: update KeyboardPress
1 parent 7f22491 commit fc768bf

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

streamerbot/3.api/3.csharp/_methods/core/system/KeyboardPress.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ example: |
1313
{
1414
public bool Execute()
1515
{
16-
// The CPH method uses the SendKeys method. That means the keyPress string needs to be enclosed in curly brackets {}. To use key combinations (SHIFT, CTRL and ALT) you can use code modifiers listed in the link or the examples below.
17-
18-
// https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys.send
19-
20-
// Note: The key list in the link above is exhaustive. If a key isn't listed there, then it's not available for this method.
21-
2216
// Examples:
2317
2418
// 'W'
@@ -40,3 +34,13 @@ example: |
4034
}
4135
}
4236
---
37+
38+
This CPH method uses the [SendKeys](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys.send) method.
39+
40+
The `keyPress` string argument needs to be enclosed in curly brackets `{}`.
41+
42+
To use key combinations such as <kbd>SHIFT</kbd>, <kbd>CTRL</kbd> and <kbd>ALT</kbd>, you can use code modifiers listed in the link below.
43+
44+
::read-more{to="https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys.send"}
45+
Full reference of all [SendKeys](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys.send) keystroke values and modifiers.
46+
::

0 commit comments

Comments
 (0)