Skip to content

LuanRoger/virtual_keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

virtual_keyboard

Simulate keystrokes with Win32 API.

Features

  • Simulate keystrokes.
  • Press multiples keys with a determinated delay betwen them.
  • Enable/Disable inputs from especific keyboard instance.

Dependencies

Example

This example writes keyboard with the 'o' being pressed for 30 milliseconds.

void main() async {
  Keyboard mainKeyboard = Keyboard();
  mainKeyboard.press(KeyboardKey.K);
  mainKeyboard.press(KeyboardKey.E);
  mainKeyboard.press(KeyboardKey.Y);
  mainKeyboard.press(KeyboardKey.B);
  await mainKeyboard.pressAndHold(
      KeyboardKey.O, const Duration(milliseconds: 30));
  mainKeyboard.press(KeyboardKey.A);
  mainKeyboard.press(KeyboardKey.R);
  mainKeyboard.press(KeyboardKey.D);
}

Documentation

Access the documentation here

About

Simulate keystrokes with Win32 API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages