我有一个命令在鼠标按钮数1,我希望它的工作以及按钮数7和8?在我的罗技鼠标上



我有一个脚本,适用于鼠标按钮数1,我想要相同的脚本,也适用于鼠标按钮7和8这是可能的吗?

EnablePrimaryMouseButtonEvents(true);

function OnEvent(event, arg)
if IsKeyLockOn("numlock" )then
if IsMouseButtonPressed(1) then
Sleep(200)
repeat
MoveMouseRelative(0,6)
Sleep(30)
until not IsMouseButtonPressed(1)
end                
end
end

第一步
进入LGS中的大鼠标图片。
Assign command "Left Click"(或"主点击">


步骤2。
设置脚本

EnablePrimaryMouseButtonEvents(true)
function OnEvent(event, arg)
if event == "MOUSE_BUTTON_PRESSED" and arg == 1 and IsKeyLockOn("numlock") then
Sleep(200)
repeat
MoveMouseRelative(0,6)
Sleep(30)
until not IsMouseButtonPressed(1)
elseif event == "MOUSE_BUTTON_PRESSED" and arg == 7 and IsKeyLockOn("numlock") then
Sleep(200)
repeat
MoveMouseRelative(0,6)
Sleep(30)
until not IsMouseButtonPressed(1)
elseif event == "MOUSE_BUTTON_PRESSED" and arg == 8 and IsKeyLockOn("numlock") then
Sleep(200)
repeat
MoveMouseRelative(0,6)
Sleep(30)
until not IsMouseButtonPressed(1)
end
end

相关内容

  • 没有找到相关文章