logitech no recoil script

Ask gaming related questions (AHK v1.1 and older)
soso
Posts: 3
Joined: 14 Aug 2022, 17:18

logitech no recoil script

Post by soso » 15 Aug 2022, 13:13

how can i replace the (numlock) with a (Lalt) or (any number) i want ?

Code: Select all

function OnEvent(event, arg)
    if (event == "PROFILE_ACTIVATED") then
        EnablePrimaryMouseButtonEvents(true)
    end
 if IsKeyLockOn("capslock")then
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
        Sleep(5)
        repeat
        MoveMouseRelative(0, 1)
        MoveMouseRelative(0, 1)
        Sleep(10)
        Sleep(50)
        until not IsMouseButtonPressed(1)
        end
      end
    end
[Mod edit: [code][/code] tags added.]
Last edited by gregster on 15 Aug 2022, 13:15, edited 1 time in total.
Reason: Topic moved from 'Scripts and Functions > Gaming' to 'Ask For Help > ...', although this doesn't look like AHK.

gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: logitech no recoil script

Post by gregster » 15 Aug 2022, 13:17

Uh, this is an AutoHotkey forum - did you plan to post this somewhere else? (This above is some other scripting language - is it Lua?)

soso
Posts: 3
Joined: 14 Aug 2022, 17:18

Re: logitech no recoil script

Post by soso » 15 Aug 2022, 13:19

ofc i will not post it somewhere else im just using this script to control my recoil in games

gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: logitech no recoil script

Post by gregster » 15 Aug 2022, 13:24

I meant to say: "Did you mistakenly post that code in this AutoHotkey forum?".
Because that code above is not in the AutoHotkey language - you seem to be at the wrong place. Or, are you asking for someone to translate it to AHK - if possible?!

soso
Posts: 3
Joined: 14 Aug 2022, 17:18

Re: logitech no recoil script

Post by soso » 15 Aug 2022, 13:27

i guess its wrong place but i dont know who else i can ask tbh

gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: logitech no recoil script

Post by gregster » 15 Aug 2022, 13:30

If you google the function names and Logitech, you should find something, I guess.
Seems to be a Lua script.

Post Reply

Return to “Gaming Help (v1)”