吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 2155|回复: 5
收起左侧

求帮加一段罗技宏lua代码

[复制链接]
念仙 发表于 2020-7-17 08:54
25吾爱币
[Lua] 纯文本查看 复制代码
EnablePrimaryMouseButtonEvents (true)
local click = false
local recoil = false
function OnEvent(event, arg)
  OutputLogMessage("event = %s, arg = %d\n", event, arg)
  if (event == "PROFILE_ACTIVATED") then
    EnablePrimaryMouseButtonEvents(true)
  end


  if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
 		if recoil then
		recoil = false
	else
		recoil = true
	end
		
  end

  --if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
		--recoil = true
  --end

  if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil and not IsModifierPressed("lalt")) then
		click = true
		SetMKeyState(3)
  end

  if (event == "MOUSE_BUTTON_RELEASED" and arg == 1) then
		click = false
  end

  if (event == "M_RELEASED" and arg == 3 and click) then
			PressMouseButton(1)
			Sleep(30)
			ReleaseMouseButton(1)

			if click then
			SetMKeyState(3)
			end
  end
end


g502上面这个我也是找的别的宏改的把5号键改成左键连发  按下切换的  现在想把4号键改成  点击左键延迟50ms大键盘数字3延迟50ms大键盘数字1    帮帮忙加一段代码在上面的这个或者重新写一下

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

头像被屏蔽
CSGO01 发表于 2020-7-17 11:16
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 念仙 发表于 2020-7-17 12:05
CSGO01 发表于 2020-7-17 11:16
你这说的太模糊了

就是把鼠标侧键当成1个功能按键   按下去  鼠标左键就变成狙击开镜射击完自动切枪
头像被屏蔽
CSGO01 发表于 2020-7-17 16:46
 楼主| 念仙 发表于 2020-7-19 18:12

枪神纪 枪神纪
x454770855 发表于 2020-7-21 20:58
你表达的比较复杂 改的话应该问题不大感觉
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-9-20 04:32

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表