Chaoses-Ib / IbInputSimulator

A library for simulating keyboard and mouse input with drivers
MIT License
191 stars 35 forks source link
autohotkey automation driver hid keystroke-injection logitech razer windows

IbInputSimulator

A library for simulating keyboard and mouse input with drivers.

Supported drivers

Software compatibility

Software SendInput Logitech Razer MCII DD EDI DM Other
Blade & Soul (Korean) ✔️ ✔️ ✔️ ❌ SendInput hook
Genshin High

For SendInput, software with High indicates that the target process usually has a high integrity level, which may block SendInput due to UIPI. To put it simply, this means that you need to run the input simulator with administrator privileges.

Supported languages

C++

Build

See InputSimulator.hpp for the API.

AutoHotkey

Download: Releases

Usage:

AutoHotkey v2 AutoHotkey v1
; Run Notepad, type "Hello world!"
; and then select all text by mouse.

#Include "IbInputSimulator.ahk"
IbSendInit() ; IbSendInit("AnyDriver", 1)
Send("#r") WinWaitActive("ahk_class #32770") Send("notepad`n")
WinWaitActive("ahk_exe notepad.exe") Send("Hello world{!}") Sleep(100) MouseClickDrag("Left", 5, 5, 150, 50)
; Run Notepad, type "Hello world!"
; and then select all text by mouse.

#Include %A_ScriptDir% #Include IbInputSimulator.ahk
IbSendInit() ; IbSendInit("AnyDriver", 1)
Send #r WinWaitActive, ahk_class #32770 Send notepad`n
WinWaitActive, ahk_exe notepad.exe Send Hello world{!} Sleep 100 CoordMode, Mouse, Client MouseClickDrag, Left, 5, 5, 150, 50

Related projects

Credits

Sponsors:

Date Sponsor Comment
2022-04-03 任性 MouClassInputInjection
2023-04-22 任性 Logitech
2023-02-28 -
2021-08-28 任性 Razer