Skip to content

About

Use API to send keystrokes with Python

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

What API does?

This python API can send keystrokes into device where is Raspberry PI Zero W connected. You don't need to find keystrokes by yourself!

Supported systems (Systems that can receive keycodes)

  • Win10
  • Win11

Supported keyboard-layouts

  • EN ('en')
  • SK ('sk')

Supported characters

  • a-z
  • A-Z
  • 0-9 (Configure keyboard-layout to correct use)
  • .*-=/+

Requirements

  • Set-up your Raspberry PI Zero W as USB HID device NOTE: Make sure that /dev/hidg0 file exists

Usage

  • Copy & Paste api.py into your project folder

Examples

Setting keyboard-layout

import api

api.lang = "sk"
api.lang = "en"

Shutting down system

import api

api.shutDown()

Writing text

import api

api.writeText("Your text will be sent into device!")

Running shortcut image

import api

api.shortcut("ctrl", "a")

Recommendation

For more methods, look into api.py!

About

Use API to send keystrokes with Python

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages