//没登陆

欢迎您来到凯恩之角,奈非天!

帖子:2

符文:13

91#
别的牌子的鼠标也可以用吗
发表于 2021-4-9 08:14:38 来自凯恩之角App |只看该作者 来自:辽宁

帖子:4580

符文:1400

92#
好的,非常好
发表于 2021-4-9 08:20:53 来自凯恩之角App |只看该作者 来自:山东

帖子:366

符文:64

93#
kakun 发表于 2021-4-9 08:14
别的牌子的鼠标也可以用吗

不能用,这个是罗技的驱动
发表于 2021-4-9 09:50:31 |只看该作者 来自:河北
[armory]http://hero.d.163.com/hero/cn/%E6%9D%AF%E9%85%92%E6%85%B0%E5%B0%81%E5%B0%98-5189/46906185[/armory]

帖子:366

符文:64

94#
wozhuzhu3516@16 发表于 2021-4-8 23:09
楼主大大 我又来麻烦你了 让你帮忙改下脚本 左键水果刀或者魔星 右键射线 4聚能 麻烦楼主大大了
  1. local Start=5
  2. local Stop="scrolllock"
  3. local click=4

  4. local Skill_1="1"
  5. local Skill_2="2"
  6. local Skill_3="3"
  7. local Skill_4="4"

  8. local DTime_1=0
  9. local DTime_2=0
  10. local DTime_3=0
  11. local DTime_4=100
  12. local DTime_R=0
  13. local DTime_L=0

  14. EnablePrimaryMouseButtonEvents (true)

  15. function Dian()
  16.     Sleep(20)
  17.     if (IsKeyLockOn(Stop)) then
  18.           if not (DTime_1==0) then
  19.          PressAndReleaseKey(Skill_1)
  20.        end
  21.        if not (DTime_2==0) then
  22.          PressAndReleaseKey(Skill_2)
  23.        end

  24.        if not (DTime_3==0) then
  25.          PressAndReleaseKey(Skill_3)
  26.        end

  27.        if not (DTime_4==0) then
  28.          PressAndReleaseKey(Skill_4)
  29.        end

  30.        if not (DTime_R==0) then
  31.          PressAndReleaseMouseButton(3)
  32.        end

  33.        if not (DTime_L==0) then
  34.          PressAndReleaseMouseButton(1)
  35.        end
  36.         Num_Key_1 = 0
  37.         Num_Key_2 = 0
  38.         Num_Key_3 = 0
  39.         Num_Key_4 = 0
  40.         Num_RightMouse = 0
  41.         Num_LiftMouse = 0
  42.     end
  43.     PressMouseButton(3)
  44.     while (IsKeyLockOn(Stop)) do
  45.         Sleep(10)
  46.            Num_Key_1 = Num_Key_1 + 1
  47.         Num_Key_2 = Num_Key_2 + 1
  48.         Num_Key_3 = Num_Key_3 + 1
  49.         Num_Key_4 = Num_Key_4 + 1
  50.         Num_RightMouse = Num_RightMouse + 1
  51.         Num_LiftMouse = Num_LiftMouse + 1
  52.           if ((Num_Key_1*10) == DTime_1) then
  53.             PressAndReleaseKey(Skill_1)
  54.             Num_Key_1 = 0
  55.         end
  56.         if ((Num_Key_2*10) == DTime_2) then
  57.             PressAndReleaseKey(Skill_2)
  58.             Num_Key_2 = 0
  59.         end

  60.         if ((Num_Key_3*10) == DTime_3) then
  61.             PressAndReleaseKey(Skill_3)
  62.             Num_Key_3 = 0
  63.         end

  64.         if ((Num_Key_4*10) == DTime_4) then
  65.             PressAndReleaseKey(Skill_4)
  66.             Num_Key_4 = 0
  67.         end

  68.         if ((Num_RightMouse*10) == DTime_R) then
  69.             PressAndReleaseMouseButton(3)
  70.             Num_RightMouse = 0
  71.         end

  72.         if ((Num_RightMouse*10) == DTime_R) then
  73.             Num_RightMouse = 0
  74.         end

  75.         if ((Num_LiftMouse*10) == DTime_L) then
  76.            Num_LiftMouse = 0
  77.         end
  78.         if IsMouseButtonPressed(click) then
  79.           ReleaseMouseButton(3)
  80.           PressAndReleaseMouseButton(1)
  81.               end
  82.         if not IsMouseButtonPressed(click) then
  83.           PressMouseButton(3)
  84.               end
  85.     end
  86.   ReleaseMouseButton(3)
  87. end

  88. function OnEvent(event, arg)
  89.     if(event=="MOUSE_BUTTON_PRESSED" and arg==Start)then
  90.                         Dian()
  91.      end
  92. end
复制代码
4技能爆破,然后右键引导,长按G4左键连点,然后你其他技能我没放,比如魔星要是放在1技能,里面的local DTime_1=0就可以改成local DTime_1=60000意思就是10分钟按一次
发表于 2021-4-9 09:59:57 |只看该作者 来自:河北
[armory]http://hero.d.163.com/hero/cn/%E6%9D%AF%E9%85%92%E6%85%B0%E5%B0%81%E5%B0%98-5189/46906185[/armory]

帖子:112

符文:1105

95#
楼主,请教个问题啊。
直接照抄能使用,但是想把G4键改为G7,就不行了。
改的方法就是把local click=4改成local click=7。
改了以后,只有射线一直按,爆破不释放,而且G5键无法关闭,得切换下游戏才能停止。
不知道哪里出问题了。
也试过把click改成“capslock”然后把“capslock”放到G7上,也不行。
麻烦楼主给看下。
发表于 2021-4-9 10:50:58 |只看该作者 来自:山东

帖子:241

符文:47

96#
收藏一下,鼠标宏
发表于 2021-4-9 11:10:39 |只看该作者 来自:福建
[armory]http://tw.battle.net/d3/tw/profile/aruru-1425/hero/30047069[/armory]

帖子:366

符文:64

97#
大隐藏灵魂行走 发表于 2021-4-9 10:50
楼主,请教个问题啊。
直接照抄能使用,但是想把G4键改为G7,就不行了。
改的方法就是把local click=4改 ...

可以把代码贴一下吗?然后贴一下GHUB的分配页面的图吧
发表于 2021-4-9 13:02:38 |只看该作者 来自:河北
[armory]http://hero.d.163.com/hero/cn/%E6%9D%AF%E9%85%92%E6%85%B0%E5%B0%81%E5%B0%98-5189/46906185[/armory]

帖子:112

符文:1105

98#
小小死灵 发表于 2021-4-9 13:02
可以把代码贴一下吗?然后贴一下GHUB的分配页面的图吧

代码直接复制你发的代码,能用。
代码111行,就把第三行换成了local click=7,其他没动就不行了。
local Start=5
local Stop="scrolllock"
local click=7

local Skill_1="1"
local Skill_2="2"
local Skill_3="3"
local Skill_4="4"

local DTime_1=0
local DTime_2=100
local DTime_3=0
local DTime_4=60000
local DTime_R=0
local DTime_L=0

EnablePrimaryMouseButtonEvents (true)

function Dian()
    Sleep(20)
    if (IsKeyLockOn(Stop)) then
          if not (DTime_1==0) then
         PressAndReleaseKey(Skill_1)
       end
       if not (DTime_2==0) then
         PressAndReleaseKey(Skill_2)
       end

       if not (DTime_3==0) then
         PressAndReleaseKey(Skill_3)
       end

       if not (DTime_4==0) then
         PressAndReleaseKey(Skill_4)
       end

       if not (DTime_R==0) then
         PressAndReleaseMouseButton(3)
       end

       if not (DTime_L==0) then
         PressAndReleaseMouseButton(1)
       end
        Num_Key_1 = 0
        Num_Key_2 = 0
        Num_Key_3 = 0
        Num_Key_4 = 0
        Num_RightMouse = 0
        Num_LiftMouse = 0
    end
    --ReleaseKey(Skill_1)
    PressKey(Skill_1)
    while (IsKeyLockOn(Stop)) do
        Sleep(10)
           Num_Key_1 = Num_Key_1 + 1
        Num_Key_2 = Num_Key_2 + 1
        Num_Key_3 = Num_Key_3 + 1
        Num_Key_4 = Num_Key_4 + 1
        Num_RightMouse = Num_RightMouse + 1
        Num_LiftMouse = Num_LiftMouse + 1
          if ((Num_Key_1*10) == DTime_1) then
            PressAndReleaseKey(Skill_1)
            Num_Key_1 = 0
        end
        if ((Num_Key_2*10) == DTime_2) then
            PressAndReleaseKey(Skill_2)
            Num_Key_2 = 0
        end

        if ((Num_Key_3*10) == DTime_3) then
            PressAndReleaseKey(Skill_3)
            Num_Key_3 = 0
        end

        if ((Num_Key_4*10) == DTime_4) then
            PressAndReleaseKey(Skill_4)
            Num_Key_4 = 0
        end

        if ((Num_RightMouse*10) == DTime_R) then
            PressAndReleaseMouseButton(3)
            Num_RightMouse = 0
        end

        if ((Num_RightMouse*10) == DTime_R) then
            PressAndReleaseMouseButton(3)
            Num_RightMouse = 0
        end

        if ((Num_LiftMouse*10) == DTime_L) then
                                        if not IsMouseButtonPressed(3) then
             PressAndReleaseMouseButton(1)
                end
           Num_LiftMouse = 0
        end
        if IsMouseButtonPressed(click) then
          ReleaseKey(Skill_1)
          PressAndReleaseMouseButton(1)
              end
        if not IsMouseButtonPressed(click) then
          PressKey(Skill_1)
              end
    end
  ReleaseKey(Skill_1)
end

function OnEvent(event, arg)
    if(event=="MOUSE_BUTTON_PRESSED" and arg==Start)then
                        Dian()
     end
end

1.png
2.png

发表于 2021-4-9 13:16:57 |只看该作者 来自:山东

帖子:112

符文:1105

99#
全部照抄,用起来挺好用的。就是想把G4改成G7按键,就不好使了。

发表于 2021-4-9 13:29:45 |只看该作者 来自:山东

帖子:3

符文:20

小小死灵 发表于 2021-4-9 09:59
4技能爆破,然后右键引导,长按G4左键连点,然后你其他技能我没放,比如魔星要是放在1技能,里面的local  ...

跪谢楼主大大
发表于 2021-4-9 14:43:30 来自凯恩之角App |只看该作者 来自:陕西

帖子:294

符文:122

你好楼主 谢谢你的宏,很好用。但是我想把“1”键改别的键应该改哪里?
发表于 2021-4-9 15:41:31 |只看该作者 来自:山东
[armory]http://hero.d.163.com/hero/cn/%E5%A4%8F%E5%BC%A5-51357/5015763[/armory]

帖子:366

符文:64

大隐藏灵魂行走 发表于 2021-4-9 13:16
代码直接复制你发的代码,能用。
代码111行,就把第三行换成了local click=7,其他没动就不行了。
loca ...
  1. local Start=5
  2. local Stop="scrolllock"
  3. local click="capslock"

  4. local Skill_1="1"
  5. local Skill_2="2"
  6. local Skill_3="3"
  7. local Skill_4="4"

  8. local DTime_1=0
  9. local DTime_2=100
  10. local DTime_3=0
  11. local DTime_4=60000
  12. local DTime_R=0
  13. local DTime_L=0

  14. EnablePrimaryMouseButtonEvents (true)

  15. function Dian()
  16.     Sleep(20)
  17.     if (IsKeyLockOn(Stop)) then
  18.           if not (DTime_1==0) then
  19.          PressAndReleaseKey(Skill_1)
  20.        end
  21.        if not (DTime_2==0) then
  22.          PressAndReleaseKey(Skill_2)
  23.        end

  24.        if not (DTime_3==0) then
  25.          PressAndReleaseKey(Skill_3)
  26.        end

  27.        if not (DTime_4==0) then
  28.          PressAndReleaseKey(Skill_4)
  29.        end

  30.        if not (DTime_R==0) then
  31.          PressAndReleaseMouseButton(3)
  32.        end

  33.        if not (DTime_L==0) then
  34.          PressAndReleaseMouseButton(1)
  35.        end
  36.         Num_Key_1 = 0
  37.         Num_Key_2 = 0
  38.         Num_Key_3 = 0
  39.         Num_Key_4 = 0
  40.         Num_RightMouse = 0
  41.         Num_LiftMouse = 0
  42.     end
  43.     PressKey(Skill_1)
  44.     while (IsKeyLockOn(Stop)) do
  45.         Sleep(10)
  46.            Num_Key_1 = Num_Key_1 + 1
  47.         Num_Key_2 = Num_Key_2 + 1
  48.         Num_Key_3 = Num_Key_3 + 1
  49.         Num_Key_4 = Num_Key_4 + 1
  50.         Num_RightMouse = Num_RightMouse + 1
  51.         Num_LiftMouse = Num_LiftMouse + 1
  52.           if ((Num_Key_1*10) == DTime_1) then
  53.             PressAndReleaseKey(Skill_1)
  54.             Num_Key_1 = 0
  55.         end
  56.         if ((Num_Key_2*10) == DTime_2) then
  57.             PressAndReleaseKey(Skill_2)
  58.             Num_Key_2 = 0
  59.         end

  60.         if ((Num_Key_3*10) == DTime_3) then
  61.             PressAndReleaseKey(Skill_3)
  62.             Num_Key_3 = 0
  63.         end

  64.         if ((Num_Key_4*10) == DTime_4) then
  65.             PressAndReleaseKey(Skill_4)
  66.             Num_Key_4 = 0
  67.         end

  68.         if ((Num_RightMouse*10) == DTime_R) then
  69.             PressAndReleaseMouseButton(3)
  70.             Num_RightMouse = 0
  71.         end

  72.         if ((Num_RightMouse*10) == DTime_R) then
  73.             PressAndReleaseMouseButton(3)
  74.             Num_RightMouse = 0
  75.         end
  76.         if ((Num_LiftMouse*10) == DTime_L) then
  77.                                         if not IsMouseButtonPressed(3) then
  78.              PressAndReleaseMouseButton(1)
  79.                                         end
  80.                                         Num_LiftMouse = 0
  81.         end
  82.         if IsKeyLockOn(click) then
  83.           ReleaseKey(Skill_1)
  84.           PressAndReleaseMouseButton(1)
  85.                                 end
  86.         if not IsKeyLockOn(click) then
  87.           PressKey(Skill_1)
  88.                                 end
  89.     end
  90.   ReleaseKey(Skill_1)
  91. end

  92. function OnEvent(event, arg)
  93.     if(event=="MOUSE_BUTTON_PRESSED" and arg==Start)then
  94.                         Dian()
  95.      end
  96. end
复制代码
你这个是旧驱动,不太清楚是不是G7不兼容还是什么的,我看你配置里G7绑定的capslock,我把左键连点的判断条件改成按下capslock后启动,再按下capslock后停止,从原来的长按改为了切换,你试试这个可以用不
发表于 2021-4-9 17:08:50 |只看该作者 来自:河北
[armory]http://hero.d.163.com/hero/cn/%E6%9D%AF%E9%85%92%E6%85%B0%E5%B0%81%E5%B0%98-5189/46906185[/armory]

帖子:366

符文:64

寒羽楠 发表于 2021-4-9 15:41
你好楼主 谢谢你的宏,很好用。但是我想把“1”键改别的键应该改哪里?

如果是要改成1 2 3 4这些键的话,就改skill_1="1"跟dtime_1=0,改成其他的,比如skill_2="1",dtime_2=0,这样
如果是要改成右键的话,那可以参考一下之前94层的例子,那个代码就是右键引导的
发表于 2021-4-9 17:11:36 |只看该作者 来自:河北
[armory]http://hero.d.163.com/hero/cn/%E6%9D%AF%E9%85%92%E6%85%B0%E5%B0%81%E5%B0%98-5189/46906185[/armory]

帖子:433

符文:112

小小死灵 发表于 2021-4-6 23:26
是GHUB吗?然后G5要绑定上scrolllock这个键

是的,绑定了
发表于 2021-4-9 18:42:37 |只看该作者 来自:山西
[armory]http://hero.d.163.com/hero/cn/%E9%BE%99%E5%87%B9%E5%87%B8-5452/9393840[/armory]

帖子:366

符文:64


可以截个鼠标分配的图,还有脚本的代码的图看看吗
发表于 2021-4-9 21:11:26 |只看该作者 来自:河北
[armory]http://hero.d.163.com/hero/cn/%E6%9D%AF%E9%85%92%E6%85%B0%E5%B0%81%E5%B0%98-5189/46906185[/armory]
您需要登录后才可以回帖 登录 | 注册网易通行证