跪求罗技罗技鼠标 lua编写脚本鼠标左键与shift绑定,就是按左键,shift也按,松开左键,shift也松开。

G700s编程问题请教,如何记录shift+鼠标左键单击?还是压根不能【罗技吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:107,206贴子:
G700s编程问题请教,如何记录shift+鼠标左键单击?还是压根不能收藏
Rt.想把G700s侧键编程shift+鼠标左键单击,或alt+鼠标左键单击,但是发现一般选项没有单击,开启记录也记录不到鼠标左右单击。
APIPRO于1980年由全球工业翘楚SKF创立,一款真正由“设备人”自己开发的EAM
鼠标动作不能直接录,需要右键选择插入
楼上正解,还有,插入鼠标按键的时候,记得插入时间。比如alt 间隔0.1秒 鼠标左键按下 间隔0.02秒 抬起
这不叫编程叫宏。。。
看了各位的教学已经搞定了,谢谢。
话说楼主g700s在哪买的?你觉得在日本亚马逊买行吗?
登录百度帐号推荐应用有人试过 Logitech Gaming Software 的 Lua 脚本功能么?【罗技吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:107,206贴子:
有人试过 Logitech Gaming Software 的 Lua 脚本功能么?收藏
APIPRO于1980年由全球工业翘楚SKF创立,一款真正由“设备人”自己开发的EAM
以下脚本实现了默认的 G1~G6 输出数字 1~6。flag = 0--ClearLog()--[[function getScanCode()  OutputLogMessage(&Call Function.\n&)  PressAndReleaseMouseButton(1)end]]--function OnEvent(event, arg)  --getScanCode()  if (flag & 10) then    ClearLog()    flag = 0  else    flag = flag + 1  end  if (event == &G_PRESSED&) then    OutputLogMessage(&G%d-Key was pressed. Event time: %s!\n&, arg, GetDate())    PressKey(1 + arg)  end  if (event == &G_RELEASED&) then    OutputLogMessage(&G%d-Key was released. Event time: %s!\n&, arg, GetDate())    ReleaseKey(1 + arg)  endend
以下代码实现 G1~G6 联合 M1~M3 输出数字 1~18。flag = 0--ClearLog()--[[function getScanCode()  OutputLogMessage(&Call Function.\n&)  PressAndReleaseMouseButton(1)end]]--function OnEvent(event, arg)  --getScanCode()  if (flag & 10) then    ClearLog()    flag = 0  else    flag = flag + 1  end  if (GetMKeyState() == 1) then    if (event == &G_PRESSED&) then      OutputLogMessage(&G%d-Key was pressed. Event time: %s!\n&, arg, GetDate())      PressKey(1 + arg)    end    if (event == &G_RELEASED&) then      OutputLogMessage(&G%d-Key was released. Event time: %s!\n&, arg, GetDate())      ReleaseKey(1 + arg)    end  elseif (GetMKeyState() == 2) then    if (arg & 4) then      PressAndReleaseKey(7 + arg)    elseif (arg == 4) then      PressAndReleaseKey(2)      PressAndReleaseKey(11)    else      PressAndReleaseKey(2)      PressAndReleaseKey(1 + arg - 4)    end  elseif (GetMKeyState() == 3) then    PressAndReleaseKey(2)    PressAndReleaseKey(3 + arg)  else    OutputLogMessage(&Bad Input!&)  endend
以下代码修正了第二段代码出现按下 M1~M3 时不必要的字符输出,并且处理了连续输出两次的问题。flag = 0--ClearLog()--[[function getScanCode()  OutputLogMessage(&Call Function.\n&)  PressAndReleaseMouseButton(1)end]]--function OnEvent(event, arg)  --getScanCode()  if (flag & 10) then    ClearLog()    flag = 0  else    flag = flag + 1  end  flag_MKey = GetMKeyState()  if (flag_MKey == 1) then    if (event == &G_PRESSED&) then      OutputLogMessage(&G%d-Key was pressed. Event time: %s!\n&, arg, GetDate())      PressKey(1 + arg)    end    if (event == &G_RELEASED&) then      OutputLogMessage(&G%d-Key was released. Event time: %s!\n&, arg, GetDate())      ReleaseKey(1 + arg)    end  elseif (flag_MKey == 2) then    if (arg & 4) then      if (event == &G_PRESSED&) then        PressKey(7 + arg)      end      if (event == &G_RELEASED&) then        ReleaseKey(7 + arg)      end    elseif (arg == 4) then      if (event == &G_PRESSED&) then        PressKey(2)        PressKey(11)      end      if (event == &G_RELEASED&) then        ReleaseKey(2)        ReleaseKey(11)      end    elseif (arg == 5) then      if (event == &G_PRESSED&) then        PressKey(2)        ReleaseKey(2)        PressKey(1 + arg - 4)      end      if (event == &G_RELEASED&) then        --ReleaseKey(2)        ReleaseKey(1 + arg - 4)      end    else      if (event == &G_PRESSED&) then        PressKey(2)        PressKey(1 + arg - 4)      end      if (event == &G_RELEASED&) then        ReleaseKey(2)        ReleaseKey(1 + arg - 4)      end    end  elseif (flag_MKey == 3) then    if (event == &G_PRESSED&) then      PressKey(2)      PressKey(3 + arg)    end    if (event == &G_RELEASED&) then      ReleaseKey(2)      ReleaseKey(3 + arg)    end  else    OutputLogMessage(&Bad Input!&)  end--[[  if (arg == 1) then    MoveMouseToVirtual(0, 0)  elseif (arg == 2) then    MoveMouseToVirtual(65535, 0)  elseif (arg == 3) then    MoveMouseToVirtual(0, 65535)  elseif (arg == 4) then    MoveMouseToVirtual(6)  else    MoveMouseToVirtual(65535 / 2, 65535 / 2)  end]]--end
增加 M Key 判断flag = 0--ClearLog()--[[function getScanCode()  OutputLogMessage(&Call Function.\n&)  PressAndReleaseMouseButton(1)end]]--function OnEvent(event, arg)  --getScanCode()  if (flag & 10) then    ClearLog()    flag = 0  else    flag = flag + 1  end  flag_MKey = GetMKeyState()  if (event == &M_PRESSED&) then    OutputLogMessage(&M%d-Key was pressed. Event time: %s!\n&, arg, GetDate())    flag_MKey = arg  elseif (event == &M_RELEASED&) then    OutputLogMessage(&M%d-Key was released. Event time: %s!\n&, arg, GetDate())    flag_MKey = arg  elseif (flag_MKey == 1) then    if (event == &G_PRESSED&) then      OutputLogMessage(&G%d-Key was pressed. Event time: %s!\n&, arg, GetDate())      PressKey(1 + arg)    end    if (event == &G_RELEASED&) then      OutputLogMessage(&G%d-Key was released. Event time: %s!\n&, arg, GetDate())      ReleaseKey(1 + arg)    end  elseif (flag_MKey == 2) then    if (arg & 4) then      if (event == &G_PRESSED&) then        OutputLogMessage(&G%d-Key was pressed. Event time: %s!\n&, arg, GetDate())        PressKey(7 + arg)      end      if (event == &G_RELEASED&) then        OutputLogMessage(&G%d-Key was released. Event time: %s!\n&, arg, GetDate())        ReleaseKey(7 + arg)      end    elseif (arg == 4) then      if (event == &G_PRESSED&) then        OutputLogMessage(&G%d-Key was pressed. Event time: %s!\n&, arg, GetDate())        PressKey(2)        PressKey(11)      end      if (event == &G_RELEASED&) then        OutputLogMessage(&G%d-Key was released. Event time: %s!\n&, arg, GetDate())        ReleaseKey(2)        ReleaseKey(11)      end    elseif (arg == 5) then      if (event == &G_PRESSED&) then        OutputLogMessage(&G%d-Key was pressed. Event time: %s!\n&, arg, GetDate())        PressKey(2)        ReleaseKey(2)        PressKey(1 + arg - 4)      end      if (event == &G_RELEASED&) then        OutputLogMessage(&G%d-Key was released. Event time: %s!\n&, arg, GetDate())        --ReleaseKey(2)        ReleaseKey(1 + arg - 4)      end    else      if (event == &G_PRESSED&) then        OutputLogMessage(&G%d-Key was pressed. Event time: %s!\n&, arg, GetDate())        PressKey(2)        PressKey(1 + arg - 4)      end      if (event == &G_RELEASED&) then        OutputLogMessage(&G%d-Key was released. Event time: %s!\n&, arg, GetDate())        ReleaseKey(2)        ReleaseKey(1 + arg - 4)      end    end  elseif (flag_MKey == 3) then    if (event == &G_PRESSED&) then      OutputLogMessage(&G%d-Key was pressed. Event time: %s!\n&, arg, GetDate())      PressKey(2)      PressKey(3 + arg)    end    if (event == &G_RELEASED&) then      OutputLogMessage(&G%d-Key was released. Event time: %s!\n&, arg, GetDate())      ReleaseKey(2)      ReleaseKey(3 + arg)    end  else    OutputLogMessage(&Bad Input!&)  endend
- -这是你哪找来的...能发一下么..我想试着学着用.
偶就一个g502的鼠标知道怎么写一段 按下鼠标4键就开始一段循环脚本 再按下就能停止脚本运行么喵。。
求解这个脚本有什么用?
大神求助。怎样通过g键来控制鼠标位置,并点击。万分感谢。。。
我用罗技G602,实现了星际争霸2的 p一键刷兵实现了T的一键造兵、一键甩枪兵Z的一键造兵,一键注卵所有3族的一键造农民
大皇帝页游新区入口,策略游戏选大皇帝,点击领取礼包,新服送首冲高返利!
@AndroidOL翻译的中文版在哪
我想学 甩鼠标指令MoveMouseTo
这种 教教我好吗
帮助文档写的也挺详细的。比如 MoveMouseTo:The MoveMouseTo() function is used to move the mouse cursor to an absolute position on the screen.比如 GetMousePosition:The GetMousePosition() function returns the normalized coordinates of the current mouse cursor location.既然知道函数作用就可以写代码了,比如水平向右移动屏幕的1/10距离:x, y = GetMousePosition();MoveMouseTo(x + 6), y)结合上面的代码,在G1或其他键按下或松开的时候触发代码。if (event == &G_PRESSED&) thenx, y = GetMousePosition();MoveMouseTo(x + 6), y)end就可以避免触发两次了。
能不能说串指令 比如 转180度之后按下S+右键这样的if (event == &G_PRESSED&) thenx, y = GetMousePosition();MoveMouseTo(x + 6), y)Sleep(10)PressKey(&a&)PressMouseButton(3)ReleaseKey(&s&)end
if (event == &G_PRESSED&) thenx, y = GetMousePosition();MoveMouseTo(x + 6), y)Sleep(10)PressKey(&s&)PressMouseButton(3)ReleaseMouseButton(3)ReleaseKey(&s&)end上面再编辑的时候按倒ctrl+enter了
@AndroidOL 01.--if (event == &G_RELEASED& and arg == 4) then --4为罗技键盘G4键 02.if (event == &MOUSE_BUTTON_RELEASED& and arg == 5) then --3为罗技鼠标中键,5为侧键前进,4为侧键返回这是从别的网站上看到的
这个是你给的if (event == &G_PRESSED&) thenx, y = GetMousePosition();MoveMouseTo(x + 6), y)Sleep(10)PressKey(&s&)PressMouseButton(3)ReleaseMouseButton(3)ReleaseKey(&s&)end -----------------------------------------------function OnEvent(event, arg)--OutputLogMessage(&event = %s, arg = %s\n&, event, arg);if (event == &G_RELEASED& and arg == 4) thenx, y = GetMousePosition();MoveMouseTo(x + 6), y)Sleep(10)PressKey(&s&)PressMouseButton(3)ReleaseMouseButton(3)ReleaseKey(&s&)end原本有的编写
然后复制进去 --------------------------------function OnEvent(event, arg, family)if (event == &G_RELEASED& and arg == 4) then --4x, y = GetMousePosition();MoveMouseTo(x + 6), y)Sleep(10)PressKey(&s&)PressMouseButton(3)ReleaseMouseButton(3)ReleaseKey(&s&)end ----------------------------------------------function OnEvent(event, arg, family)if (event == &MOUSE_BUTTON_RELEASED& and arg == 5) thenx, y = GetMousePosition();MoveMouseTo(x + 6), y)Sleep(10)PressKey(&s&)PressMouseButton(3)ReleaseMouseButton(3)ReleaseKey(&s&)end
---------------------------我用键盘和鼠标去试验
换了好些个所谓的键位
可是也没有按到哪个键位可以看到瞬间移动鼠标的啊
上面那些指令都没用
是不是鼠标的问题?我有罗技键盘 也有鼠标
pressCount = 0functionTablePress = {[3] = function()if (not IsKeyLockOn(&scrolllock&)) thenPressKey(&lalt&, &f4&)elsePressKey(&lctrl&, &w&)endend,[5] = function()PressKey(&lctrl&, &lshift&, &t&)end,[20] = function()pressCount = pressCount + 1SetMouseSpeed(32)end,[4] = function()if (not IsKeyLockOn(&scrolllock&)) thenMoveMouseWheel(1)elsePressKey(&up&)endend,[11] = function()PressMouseButton(2)end,[17] = function()if (not IsKeyLockOn(&scrolllock&)) thenMoveMouseWheel(-1)elsePressKey(&down&)endend,[10] = function()PressMouseButton(1)end,[12] = function()PressMouseButton(3)end}functionTablePress[21] = functionTablePress[20]functionTablePress[22] = functionTablePress[21] functionTableRelease = {[3] = function()ReleaseKey(&lctrl&, &w&)ReleaseKey(&lalt&, &f4&)end,[5] = function()ReleaseKey(&lctrl&, &lshift&, &t&)end,[20] = function()SetMouseSpeed(72)end,[10] = function()ReleaseMouseButton(1)end,[11] = function()ReleaseMouseButton(2)end,[12] = function()ReleaseMouseButton(3)end,[4] = function()--if (IsKeyLockOn(&scrolllock&)) thenReleaseKey(&up&)--endend,[17] = function()--if (IsKeyLockOn(&scrolllock&)) thenReleaseKey(&down&)--endend}functionList = {3, 5, 20, 4, 11, 17, 10, 12, 9,21 + 3, 21 + 5, 21 + 20, 21 + 10, 21 + 11, 21 + 12, 21 + 4, 21 + 17, 21 + 9}SetMouseDPITable({600, 1600} , 2)functionTableMousePress = {[6] = function()PressKey(&lgui&)end,[9] = function()SetMouseDPITableIndex(1)end,[10] = function()PressAndReleaseKey(&capslock&)end,[11] = function()PressKey(&lctrl&, &w&)end,[12] = function()PressKey(&home&)end,[15] = function()PressKey(&end&)end,[13] = function()PressKey(&pageup&)end,[14] = function()PressKey(&lctrl&, &tab&)end,[16] = function()PressKey(&pagedown&)end,[17] = function()PressKey(&lctrl&, &t&)end,[18] = function()PressKey(&f5&)end,[19] = function()PressAndReleaseKey(&scrolllock&)end}--functionTableMousePress[18] = functionTableMousePress[9]functionTableMouseRelease = {[6] = function()ReleaseKey(&lgui&)end,[9] = function()SetMouseDPITableIndex(2)end,[10] = function()PressAndReleaseKey(&capslock&)end,[11] = function()ReleaseKey(&lctrl&, &w&)end,[12] = function()ReleaseKey(&home&)end,[15] = function()ReleaseKey(&end&)end,[13] = function()ReleaseKey(&pageup&)end,[14] = function()ReleaseKey(&lctrl&, &tab&)end,[16] = function()ReleaseKey(&pagedown&)end,[17] = function()ReleaseKey(&lctrl&, &t&)end,[18] = function()ReleaseKey(&f5&)end,[19] = function()PressAndReleaseKey(&scrolllock&)end}--functionTableMouseRelease[18] = functionTableMouseRelease[9]functionMouseList = {6, 9, 10, 11, 12, 15, 13, 14, 16, 17, 18, 19,21 + 6, 21 + 9, 21 + 10, 21 + 11, 21 + 12, 21 + 15, 21 + 13, 21 + 14, 21 + 16, 21 + 17, 21 + 18, 21 + 19,0}function isExist(argNum, bool, Debug)if (bool) thenlen = #functionListelselen = #functionMouseListendfor temp = 1, len doif (bool) thenif (argNum == functionList[temp]) thenreturn trueendelseif (argNum == functionMouseList[temp]) thenreturn trueendendif (Debug == true) thenif (bool) thenOutputLogMessage(&Compared: %d\n&, functionList[temp])elseOutputLogMessage(&Compared: %d\n&, functionMouseList[temp])endendendif (Debug == true) thenOutputLogMessage(&BAD&)endreturn falseendfunction OnEvent(event, arg)--OutputLogMessage(&### Event Name: [%s]\t - with Args Number: [%d] ###\n&, event, arg)--pressCount = pressCount + 1--OutputLogMessage(&### Now Time:%s, Times: %d ###\n&, GetDate(), pressCount)if (event == &G_PRESSED& and isExist(arg, true, false)) thenfunctionTablePress[arg]()elseif (event == &G_RELEASED& and isExist(arg + 21, true, false)) thenfunctionTableRelease[arg]()elseif (event == &MOUSE_BUTTON_PRESSED& and isExist(arg, false, false)) thenfunctionTableMousePress[arg]()elseif (event == &MOUSE_BUTTON_RELEASED& and isExist(arg + 21, false, false)) thenfunctionTableMouseRelease[arg]()else--while (event == &MOUSE_BUTTON_PRESSED&) do--Sleep(1000)--OutputLogMessage(&### Event Name: [%s]\t - with Args Number: [%d] ###\n&, event, arg)--endendend你看着我的代码改吧,我也是G600,这个自己用的常用功能,你要简单的做,那么直接修改我的代码就可以。比如:[9] = function()你要做的代码end,按下G9会自动触发。
function OnEvent(event, arg, family)if (event == &MOUSE_BUTTON_RELEASED&) thenx, y = GetMousePosition();MoveMouseTo(x + 6), y)Sleep(10)PressKey(&s&)PressMouseButton(3)ReleaseMouseButton(3)ReleaseKey(&s&)endend就可以了呀。。
我换成了 MoveMouseRelative
可以在游戏里动了
可是 还是不够普通的按键宏快感觉有延迟
这些指令有版本打进xml宏文件里面吗 哪怕是错乱 不能改按键也要想办法反应迅速才行。。。不打不了竞技
MoveMouseToVirtual 这个 好像也比较好用点
&delay milliseconds=&0&/&编写脚本里 延迟0 是
Sleep(0) 那外面的指令MoveMouseTo的指令能不能带进xml里
编写脚本太慢了
估计是因为他每次都得读取function OnEvent(event, arg, family)if (event == &MOUSE_BUTTON_RELEASED& and arg == 9) thenx, y = GetMousePosition(); 有没有办法解决
顶端的问题
按键精灵 MoveTo
就可以180度转身但是因为按键精灵是软件
不是鼠标直接命令 也是慢慢的
转动的速度。。太卡了
还不如手动。。 没办法的话 问一下
有没有办法绑定 滚轮滚动为按键宏
大神,G502的G键要按住才能切换,我想把G键变成按一下切换过去再按一下切换回来要怎么搞呢,完全不懂
全局变量不懂下面是我找到你的那个G-series Lua API 参考文档 然后写的,还是错的function OnEvent(event, arg)--OutputLogMessage(&event = %s, arg = %s\n&, event, arg);
if (event == &MOUSE_BUTTON_PRESSED& and arg == 6 and family == &mouse&) then
if (IsMouseButtonPressed(6) == false) then
PressMouseButton(6);
ReleaseMouseButton(6);
--如果G5被按下,p造使徒
if (event == &MOUSE_BUTTON_PRESSED& and arg == 5) then
--PressAndReleaseKey(0x07,0x0f,&v&, &v&, &v&);
--按下w键选中打开的兵营,并准备造使徒
PressAndReleaseKey(0x11,&h&);
--按下shift键和ai自动施法键
PressKey(0x2a,&G&);
if (event == &MOUSE_BUTTON_RELEASED& and arg == 5) then
--弹起shift键和ai自动施法键
ReleaseKey(0x2a,&G&);
end需要在自动施法的按键中,不仅有鼠标左键,还需要输入G,完成点击的意思
--如果G6被按下,p造dark
if (event == &MOUSE_BUTTON_PRESSED& and arg == 6) then
--按下w键选中打开的兵营,并准备造dark
PressAndReleaseKey(0x11,&d&);
--按下shift键和ai自动施法键
PressKey(0x2a,&G&);
--如果G6弹起,弹起对应的shift键和z、g键,停止造dark
if (event == &MOUSE_BUTTON_RELEASED& and arg == 6) then
--弹起shift键和ai自动施法键
ReleaseKey(0x2a,&G&);
大神,能做一个右键和左键同时按着时候 鼠标持续向下移动,直到松开
LeftDown 1LeftUp 1Delay 35 msMoveR 0 11LeftDown 1LeftUp 1Delay 36 msMoveR 0 10LeftDown 1LeftUp 1Delay 34 msMoveR 0 9LeftDown 1LeftUp 1Delay 36 msMoveR 0 10LeftDown 1LeftUp 1Delay 35 msMoveR 0 8LeftDown 1LeftUp 1Delay 37 msMoveR 0 11LeftDown 1LeftUp 1Delay 38 msMoveR 0 12LeftDown 1LeftUp 1Delay 36 msMoveR 0 13&/Syntax&这段能不能帮忙翻译成罗技的鼠标宏啊~~~大神
萌新想问一下G1到G6代表的是鼠标按键,那M1到M3代表的是什么呢,api我看过了不懂mkey到底是什么?
登录百度帐号推荐应用罗技鼠标shift+左键宏怎么做_百度知道
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。
罗技鼠标shift+左键宏怎么做
我有更好的答案
这个需要你确定鼠标带宏编程,我用的雷柏V900就是可以编程的,需要上官网下载个驱动,然后进行对应按键的录制
采纳率:94%
来自团队:
为您推荐:
其他类似问题
您可能关注的内容
罗技鼠标的相关知识
等待您来回答}

我要回帖

更多关于 euishift 鼠标左键 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信