Script to Spam "E" with Ctrl+Alt+E (Toggleable)

Ask gaming related questions
akeith
Posts: 1
Joined: 06 Mar 2024, 22:34

Script to Spam "E" with Ctrl+Alt+E (Toggleable)

Post by akeith » 06 Mar 2024, 22:55

Hello!

I need some scripts for Fallout: New Vegas, first to spam "e" to pick up items in the game world, it needs to be toggleable with Ctrl+Alt+E. Secondly, needing to spam "w" to spin the slots machine in game, toggleable with Ctrl+Alt+W. Lastly, I need a script to spam Shift+Left Click, maybe activating with Ctrl+Alt+M to move items into a container. Toggleable as well. all on a roughly 10ms delay please.

I appreciate any help.

Noitalommi_2
Posts: 224
Joined: 16 Aug 2023, 10:58

Re: Script to Spam "E" with Ctrl+Alt+E (Toggleable)

Post by Noitalommi_2 » 07 Mar 2024, 16:48

Hi.

Please try this.

Code: Select all

#Requires AutoHotkey v2.0
#SingleInstance

*^!e:: { ; Ctrl+Alt+E

    static on := false
    SetTimer () => SendEvent("{e}"), (on := !on) ? 10 : 0 ; 10ms
}
*^!w:: { ; Ctrl+Alt+W

    static on := false
    SetTimer () => SendEvent("{w}"), (on := !on) ? 10 : 0 ; 10ms
}
*^!m:: { ; Ctrl+Alt+M

    static on := false
    SetTimer () => SendEvent("{LShift down}{LButton}{LShift up}"), (on := !on) ? 10 : 0 ; 10ms
}
F4::ExitApp

Post Reply

Return to “Gaming”