Skip to content

Instantly share code, notes, and snippets.

@mageddo
Last active October 1, 2022 03:31
Show Gist options
  • Save mageddo/226277f1db8521c92795a47d877dcfc5 to your computer and use it in GitHub Desktop.
Save mageddo/226277f1db8521c92795a47d877dcfc5 to your computer and use it in GitHub Desktop.
Resident Evil 4: Activate LMB + RMB on keyboard instead
; auto hot keys version = 1.1.34.04
; sends a and d + lmb + rmb
; author: @mageddo
; release date: 2020-04-05
; updated at: 2022-09-30
; version: v1.1
#UseHook
#MaxHotkeysPerInterval 200 ;example from Help file
#IfWinActive, ahk_exe bio4.exe
CoordMode, Mouse, Screen
~*RAlt::
global Chat
Chat := not Chat
return
; Trigger LMB + RMB
; ~j & k:: ; k e k ao mesmo tempo
~c::
SetKeyDelay -1
global Chat
if(!Chat)
{
Send {Blind}{Click down}{Click down right}
Send {Blind}{a down}{d down}
}
return
; Release LMB + RMB
*~c up::
SetKeyDelay -1
global Chat
if(!Chat)
{
Send {Blind}{Click up}{Click up right}
Send {Blind}{a up}{d up}
}
return
; todas as dodges enquanto apertado
~p::
global Chat
if(!Chat)
{
Loop
{
If !GetKeyState("o")
Break
Send {Blind}{Click down}{Click down right}
Send {Blind}{a down}{d down}
sleep 100
Send {Blind}{Click up}{Click up right}
Send {Blind}{a up}{d up}
sleep 50
}
}
return
; correr ou subir
~o::
global Chat
if(!Chat)
{
Loop
{
If !GetKeyState("o")
Break
Send {a down}
sleep 30
Send {a up}
sleep 50
}
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment