Application to simulate keyboard inputs at intervals for macOS.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
KeyboardSimulator.xcodeproj
KeyboardSimulator
images
.gitignore
LICENSE
README.md
README_JP.md

README.md

日本語

KeyboardSimulator

Application to simulate keyboard inputs at intervals for macOS.

Overview

  1. Apply simulated inputs
    • Apply string into "simulated inputs" filed.
    • Definition of available characters are in this file.
  2. Apply interval
    • Apply value representing intervals between each inputs.
    • Value of interval cannot be over 5 seconds so as to prevent dangerous behavior.
  3. Run
    • String is automatically inserted into focused field as a result of simulating keyboard event.
  4. Stop
    • Simulation stops.

Technology

Class KeyboardSimulator creates and posts events.

Event representing key event is created by initializer init(keyboardEventSource:virtualKey:keyDown:) of CGEvent and posted by post(tap:).

All of definition of Virtual keycodes applied when creating CGEvent can be checked in the file /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers/Events.h.