分享下罗技鼠标宏
暗黑3吧
全部回复
仅看楼主
level 2
emoboydc 楼主
武僧:
---技能按键设置:
----鼠标左键->风雷冲
----鼠标右键->劲风煞
----1键->炫目闪(手工)
----2键->禅定
----3键->灵光悟
----4键->真言
Barbarian_Macro_LoopInterval = 10 --脚本循环间隔(毫秒)
function OnEvent(event, arg, family)
--if (event == "G_RELEASED" and arg == 4) then --4为罗技键盘G4键
if (event == "MOUSE_BUTTON_RELEASED" and arg == 4) then --3为罗技鼠标中键,5为侧键前进,4为侧键返回
Barbarian_Macro_FullyAuto()
end
end
function Barbarian_Macro_FullyAuto()
if (IsKeyLockOn("capslock")) then
--按下并释放2键(禅定)、3键(灵光悟)、4键(真言)
--PressAndReleaseKey("2", "3", "4")
PressAndReleaseKey("2", "3", "4")
--按鼠标右键(启动右键劲风煞)
PressAndReleaseMouseButton(3)
PressKey("rshift")
Alt_Pressed = false
Times_Key_1 = 0
Times_Key_2 = 0
Times_Key_3 = 0
Times_Key_4 = 0
Times_Button_RightMouse = 0
end
--如果CapsLock键已按下则启动循环,否则退出循环
while (IsKeyLockOn("capslock")) do
Sleep(Barbarian_Macro_LoopInterval) --循环间隔
Times_Key_1 = Times_Key_1 + 1
Times_Key_2 = Times_Key_2 + 1
Times_Key_3 = Times_Key_3 + 1
Times_Key_4 = Times_Key_4 + 1
Times_Button_RightMouse = Times_Button_RightMouse + 1
--每3秒按下并释放4键(真言)
if ((Times_Key_4*Barbarian_Macro_LoopInterval) == 3000) then
PressAndReleaseKey("4")
Times_Key_4 = 0
end
--每1秒按下并释放3键(灵光悟)
if ((Times_Key_3*Barbarian_Macro_LoopInterval) == 500) then
PressAndReleaseKey("3")
Times_Key_3 = 0
end
--每1秒按下并释放2键(禅定)
if ((Times_Key_2*Barbarian_Macro_LoopInterval) == 500) then
PressAndReleaseKey("2")
Times_Key_2 = 0
end
--每2秒按下并释放1键(炫目闪)手工
if ((Times_Key_1*Barbarian_Macro_LoopInterval) == 2000) then
PressAndReleaseKey("1")
Times_Key_1 = 0
end
--每8秒按下并释放鼠标右键(劲风煞)
if ((Times_Button_RightMouse*Barbarian_Macro_LoopInterval) == 8000) then
PressAndReleaseMouseButton(3)
Times_Button_RightMouse = 0
end
--按住lalt键中断劲风煞(捡东西)
if (IsModifierPressed("lalt")) then
if not (Alt_Pressed) then
ReleaseMouseButton(3)
ReleaseKey("rshift")
Alt_Pressed = true
end
else
if (Alt_Pressed) then
PressMouseButton(3)
PressKey("rshift")
Alt_Pressed = false
elseif not (IsMouseButtonPressed(3)) then
ReleaseMouseButton(3)
PressMouseButton(3)
end
end
end
ReleaseKey("rshift")
ReleaseMouseButton(3)
end
2020年02月04日 14点02分 1
level 2
emoboydc 楼主
罗技G402或G502可用。鼠标左侧侧键返回键要设多键设置,绑定capslock,这个侧键即是启动也是关闭宏。炫目闪写的手工,其实不是手工,自动2秒释放。按住左键冲就行了。要捡东西或者开门,就按侧键关闭宏。
2020年02月04日 14点02分 2
level 1
大哥问个问题,我单人70层大秘境,不是必出太古吗,为啥我不会出?三个人物都70层了[泪]
2020年02月05日 14点02分 3
我现在回答你,估计你已经有一堆太古了
2021年01月12日 13点01分
...
2021年01月22日 12点01分
@emoboydc 哈哈,可能都已经放弃游戏了
2021年05月20日 07点05分
只有新赛季第一个角色通关70层之后才会必出太古
2021年05月20日 23点05分
level 1
我用了你的宏发现鼠标不按的时候无限释放劲风煞,我哪里没搞好吗?
2020年02月14日 13点02分 4
level 1
想写一个脚本 按下侧键连续按e 按住alt暂停 松开继续 求教怎么写
2020年11月28日 16点11分 5
这要用ahk吧
2020年11月28日 18点11分
罗技也能实现的 ahk 没研究过 根据楼主提供的代码改了好了 改不好啊
2020年11月29日 12点11分
level 1
罗技G系列鼠标宏所有游戏宏 YY9520
永久包更新
包售后
2020年11月29日 03点11分 6
1