https://github.com/chdh/kb-send
Send text through the keyboard
https://github.com/chdh/kb-send
automation clipboard kbsend keyboard keyboard-injector sendkeys windows
Last synced: about 1 month ago
JSON representation
Send text through the keyboard
- Host: GitHub
- URL: https://github.com/chdh/kb-send
- Owner: chdh
- License: mit
- Created: 2022-02-19T23:16:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T03:48:49.000Z (over 3 years ago)
- Last Synced: 2024-12-31T12:27:57.395Z (over 1 year ago)
- Topics: automation, clipboard, kbsend, keyboard, keyboard-injector, sendkeys, windows
- Language: C#
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# kbSend - Send text through the keyboard
This is a Windows command-line utility program, written in C#.
It transfers text data through the keyboard input channel.
It is used when the clipboard cannot be used to paste text or for simple automation scripts.
Example for sending a string to the Remote Desktop Client (mstsc.exe):
kbsend -text "abc" -windowTitle "Remote Desktop Connection"
Example for copying text from the clipboard to the Citrix Client:
kbsend -clipboard -windowExe "\CDViewer.exe" -charDelay 12 -lineDelay 125
## Parameters
### Input text
-text "..."
Text string passed as a parameter.
-clipboard
Text is read from the clipboard.
-file <fileName>
Text is read from a file.
### Target window
-nextWindow
Moves the focus to the next window.
Windows Explorer windows are ignored.
This is the default.
-currentWindow
Keeps the current focus window.
-windowTitle "title substring"
Moves the focus to the window with the specified string in the title.
Case-insensitive substring search is used to compare the window titles.
-windowExe "exe file path substring"
Moves the focus to the window with the specified string in the EXE file path.
Case-insensitive substring search is used to compare the EXE file paths.
### Misc. options
-charDelay <ms>
Delay per character in milliseconds.
Default is 1.
-lineDelay <ms>
Delay per line in milliseconds.
Default is 25.
-sendHomeKey
Sends HOME after ENTER when the previous line started with blanks.
This is necessary when line indent is inherited from the line above.
-sendEscKey
Sends ESC before ENTER at end of line.
This is necessary to close a popup e.g. for Microsoft SQL Server Management Studio.
-listWindows
Lists window titles and EXE file names of the desktop windows.
-help
Displays this help text.