简体   繁体   中英

Logitech Mouse: One Click = 2 Keys Pressed

Is it possible to program logitech mouse with lua script to press 2 keys (J and K) when I press a mouse button?

function OnEvent(event, arg, family)
   if event == "MOUSE_BUTTON_PRESSED" and arg == 5 then  -- mouse button 5
      PressAndReleaseKey("J", "K")
   end
end

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM