Skip to content

Razer mouse movement is abnormal #45

@Eyang2545

Description

@Eyang2545

After IbSendInit(“Razer”),the relative movement coordinate mode for Click and MouseMove events fails to function properly.

#NoEnv
#Include %A_ScriptDir%
#Include IbInputSimulator.ahk
SetWorkingDir %A_ScriptDir%

; 初始化
IbSendInit("Razer")



; 测试1:普通AHK Click命令(不使用IbSend)
F1::
    Click, 0, 50, Rel, 0  ; 直接使用AHK的Click
    ToolTip, 使用AHK原生Click
return

; 测试2:通过IbSend发送Click命令
F2::
    IbSend("{Click, 0, 50, Rel, 0}")
    ToolTip, 使用IbSend+Click
return

; 测试3:使用MouseMove命令
F3::
    MouseMove, 0, 50, 50, R  ; R=相对移动
    ToolTip, 使用MouseMove相对移动
return

; 测试4:通过IbSend发送MouseMove=
F4::
    IbSend("{MouseMove, 0, 50, R}")
    ToolTip, 使用IbSend+MouseMove
return

; 脚本退出时清理
F12::
    isMoving := false
    IbSendDestroy()
    ExitApp
return

Before using F2/F4, none of the methods functioned properly, with the cursor gradually moving to a fixed horizontal plane.
After using F2/F4 once, F1 and F3 worked normally, while the effects of F2 and F4 remained unchanged.

Without calling IbSendInit(“Razer”), everything functions normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AHKbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions