/IbAhkSendLib

An AutoHotkey library that enables AHK to send keystrokes by drivers.

Primary LanguageC++MIT LicenseMIT

IbAhkSendLib

Languages: English, 简体中文
An AutoHotkey library that enables AHK to send keystrokes by drivers.

Supported Drivers

  • Logitech G HUB
    No Logitech hardware required.
    e.g. IbSendInit("Logitech")
  • Logitech Gaming Software
    No Logitech hardware required.
    e.g. IbSendInit("Logitech")
  • Razer Synapse 3
    No Razer hardware required, but it will be safer if you have one.
    e.g. IbSendInit("Razer")
  • DD Virtual Mouse & Virtual Keyboard
    May cause a blue screen; difficult to uninstall cleanly; need network.
    To use it, put the DLL (DD94687.64.dll/DD64.dll/DDHID64.dll) with your script file, and then:
    IbSendInit("DD")
    or specify the DLL path when call IbSendInit:
    IbSendInit("DD", 1, "C:\SomeDir\DD64.dll")

Example

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

#Include "IbAhkSend.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 IbAhkSend.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

Downloading

Releases

See Also

For Developers

Building

  1. Put IbWinCppLib in C:\L\C++\packages (in other locations you need to modify the .vcxproj files).
  2. vcpkg
    set VCPKG_DEFAULT_TRIPLET=x64-windows-static-md
    vcpkg install detours rapidjson
    
    For Test project you also need:
    vcpkg install boost-test fmt
    
    Change VCPKG_DEFAULT_TRIPLET to x86-windows-static-md if you need x86 version.