Skip to content

Latest commit

 

History

History
87 lines (82 loc) · 2.5 KB

File metadata and controls

87 lines (82 loc) · 2.5 KB

IbAhkSendLib

语言:English简体中文
AutoHotkey 驱动按键库。

支持驱动

  • 罗技 G HUB
    不需要罗技硬件。
    用例:IbSendInit("Logitech")
  • 罗技游戏软件
    不需要罗技硬件。
    用例:IbSendInit("Logitech")
  • 雷蛇雷云3
    不需要雷蛇硬件,不过如果有的话会更安全。
    用例:IbSendInit("Razer")
  • DD 虚拟鼠标 & 虚拟键盘
    可能会导致蓝屏;难以卸载干净;需要联网。
    使用时需要把 DLL 文件(DD94687.64.dll/DD64.dll/DDHID64.dll)与你的脚本文件放到一起,然后:
    IbSendInit("DD")
    或者在调用 IbSendInit 时指定 DLL 路径:
    IbSendInit("DD", 1, "C:\SomeDir\DD64.dll")

例子

AHK v2 AHK v1
; 运行记事本,输入“Hello world!”并通过鼠标全选文本。

#Include "IbAhkSend.ahk"

IbSendInit() ; IbSendInit("AnyDriver", 1)

Send("#r")
WinWaitActive("ahk_class #32770")
Send("notepad`n")

WinWaitActive("ahk_exe notepad.exe")
Send("Hello world+1")
Sleep(100)
MouseClickDrag("Left", 5, 5, 150, 50)
; 运行记事本,输入“Hello world!”并通过鼠标全选文本。

#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+1
Sleep 100
CoordMode, Mouse, Client
MouseClickDrag, Left, 5, 5, 150, 50

下载

Releases

相关推荐

开发者

构建

  1. IbWinCppLib 放入 C:\L\C++\packages(其它位置需要修改 .vcxproj 文件)。
  2. vcpkg
    set VCPKG_DEFAULT_TRIPLET=x64-windows-static-md
    vcpkg install detours rapidjson
    
    Test 项目还需要:
    vcpkg install boost-test fmt
    
    如果需要 x86 版本就把 VCPKG_DEFAULT_TRIPLET 改为 x86-windows-static-md。