为LGS重新制作的.ahk脚本

时间:2018-06-19 11:53:49

标签: lua logitech logitech-gaming-software

我一直在寻找全面的方法,但是尝试将这小段代码从.ahk转换为Logitech游戏软件以用作宏并没有成功。有人可以帮忙吗?请帮助

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

; Nels
NRA := 1

; SS
Insert::Suspend

; NR
*~LButton::
    while GetKeyState("LButton") & NRA
    {    
        DllCall("mouse_event", uint, 1, int, -2, int, 2, uint, 1, int, 0)
        Sleep, 9.5
        DllCall("mouse_event", uint, 1, int, 1.75, int, 1, uint, 0, int, 0)
        Sleep, 5
    }
return

0 个答案:

没有答案