It's quite simple he has a simple but effective setup made for himself in the game, where you only need to press E multiple times to refill the shelves in the game without moving.
So I thought this was the perfect motivator for learning AHK finally, so I scrambled something up.
The input works perfectly when I try it on the in-game chat but the game character doesn't refill the shelves / press the button element in the game.
I need it to run in the background since I still need to do some work on the pc.
I'd be grateful if anyone would help me out with this!
Code:
Code: Select all
; Set toggle to false initially
toggle := false
; Set the input mode to "Input"
SendMode Input
; Press Alt + R to start/stop spamming the E key
!r::
toggle := !toggle
While toggle {
ControlSend, , e, ahk_exe RobloxPlayerBeta.exe
Sleep, 500
}
return
; Press Alt + S to stop the script
!s::
toggle := false
return
[Mod actions: Topic moved to "[V1] Gaming Help" from "Ask for Help (v2)" since this is for a game and it is v1 code. Fixed code tags which go around the code, not at the top of the post.]
[Mod follow-up: Topic moved to v2 "Gaming" as requested.]