Skip to content

Instantly share code, notes, and snippets.

@simonLeary42
Created July 31, 2026 11:54
Show Gist options
  • Select an option

  • Save simonLeary42/d51832b8aefd42687e1c1f472f84bf9d to your computer and use it in GitHub Desktop.

Select an option

Save simonLeary42/d51832b8aefd42687e1c1f472f84bf9d to your computer and use it in GitHub Desktop.
cooking in red dead redemption 2 with autohotkey
; Simon Leary
; 12/31/2021
; when you go to cook, as you click on the item to cook, press scrollLock to keep cooking
; to stop press scrollLock again
#maxthreadsperhotkey 2
ScrollLock::
{
; SoundPlay, pop.mp3
enable:=!enable ; toggle
if (!enable){ ; if toggle off, reset the script now rather than waiting until next while loop
; SoundPlay, exitPop.mp3
sleep, 1000 ; this should be roughly the length in ms of exitPop.mp3 or its equivalent
Reload
}
while, enable ; loop until toggled off
{
; press cook
; SoundPlay, pop.mp3
sendinput, {Enter down}
sleep, 100
sendinput, {Enter up}
sleep,3000
; cook
sendinput, {Enter down}
; this time changes depending on the level of your campfire
; for level 1 campfire, ?
; for level 2 campfire, 3500
sleep, 3500
sendinput, {Enter up}
sleep, 400
; press cook another
sendinput, {Space down}
sleep, 100
sendinput, {Space up}
sleep, 2000
}
}
return
; Simon Leary
; 7/17/2022
; when you go to cook, as you click on the item to cook, press scrollLock to keep cooking
; to stop press scrollLock again
#maxthreadsperhotkey 2
ScrollLock::
{
; SoundPlay, pop.mp3
enable:=!enable ; toggle
if (!enable){ ; if toggle off, reset the script now rather than waiting until next while loop
; SoundPlay, exitPop.mp3
sleep, 1000 ; this should be roughly the length in ms of exitPop.mp3 or its equivalent
Reload
}
while, enable ; loop until toggled off
{
; press cook
; SoundPlay, pop.mp3
sendinput, {Space down}
sleep, 100
sendinput, {Space up}
sleep,3000
; cook
sendinput, {Space down}
; this time changes depending on the level of your campfire
; for level 1 campfire, ?
; for level 2 campfire, 3500
sleep, 3500
sendinput, {Space up}
sleep, 400
; press stow
sendinput, {r down}
sleep, 100
sendinput, {r up}
sleep, 2000
}
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment