• For thos with logitech keyboards
    6 replies, posted
I got tired of holding shift+w when traveling long distances, i also got tired of holding ctrl down, I decided these things need to be able to be toggled Here is my script for an toggle run and toggle crouch to use with your logitech devices, edit it to your liking [CODE]-- gkey function calls function OnEvent(event, arg, family) if event == "G_PRESSED" and arg == 15 then if (GetMKeyState("kb") == 3) then ToggleRun() end end if event == "G_PRESSED" and arg == 18 then if (GetMKeyState("kb") == 3) then ToggleCrouch() end end end -- start custom functions function ToggleRun() ToggleState = not ToggleState if ToggleState then ClearLCD() OutputLCDMessage("Toggle SHIFT + W On", 2000) SetBacklightColor(255, 0, 0, "kb"); PressKey("lshift") PressKey("w") else ClearLCD() OutputLCDMessage("Toggle SHIFT + W Off", 2000) SetBacklightColor(0, 0, 255, "kb"); ReleaseKey("lshift") ReleaseKey("w") end end function ToggleCrouch() ToggleState = not ToggleState if ToggleState then PressKey("lctrl") ClearLCD() OutputLCDMessage("Toggle LEFTCTRL On", 2000) else ReleaseKey("lctrl") ClearLCD() OutputLCDMessage("Toggle LEFTCTRL Off", 2000) end end[/CODE]
Where exactly would I enter this?
I just recorded the keystrokes using the macro recorder in my mouse driver software, then assigned it to an aux button. I assume you can do something similar in Logitech software. I think the code there is somewhat unnecessary.
You click the little arrow in the lower right on the profile name in the Logitech software. Then you select scripting.
there is a way more easy option to have permanent autosprint. just change your keybinds. secondary key for sprint can be W. it wont override the normal W key. so you have 2 things on 1 key, walking forward AND sprint. and srsly, there is no need NOT to sprint the whole time. there is no penalty like you lose more food while sprinting etc.. for perma-crouch you will need a script. dont get it why they dont implement that features.
[QUOTE=GimmeChicken;44038813] and srsly, there is no need NOT to sprint the whole time. there is no penalty like you lose more food while sprinting etc.. [/QUOTE] Yeah absolutely no reason to not sprint all the time, because you can also shoot while sprinting. Oh wait you can’t.
you stop sprinting automatically while aiming with rightclick or just start shooting. :rolleyes:
Sorry, you need to Log In to post a reply to this thread.