Created
October 26, 2023 19:39
-
-
Save kudorgyozo/a0ed92c2efd7b445fd1643ee87d69d1c to your computer and use it in GitHub Desktop.
tomb raider autohotkey scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey v2.0 | |
#SuspendExempt | |
^`:: | |
{ | |
if (A_IsSuspended) { | |
SoundBeep 392, 200 | |
} else { | |
SoundBeep 261, 200 | |
} | |
Suspend ; Ctrl+Alt+S | |
} | |
#SuspendExempt False | |
; ~ : passes the keydown through | |
; $ : allows sending hotkey itself | |
x::RepeatKeypress("x") | |
g::RepeatKeypress("g") | |
RepeatKeypress(key) { | |
Sleep(100) ;Repeat delay | |
While GetKeyState(key, "P") | |
{ | |
SendInput "{e Down}" ;repeated keydowns | |
Sleep(40) ;Repeat rate | |
SendInput "{e up}" ;repeated keydowns | |
Sleep(40) ;Repeat rate | |
} ; ~ passes the keyup through | |
Return | |
} | |
; ~w::Send "{Up}" | |
; ~a::Send "{Left}" | |
; ~s::Send "{Down}" | |
; ~d::Send "{Right}" | |
; ~e::Send "{Enter}" | |
;eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey v2.0 | |
#SuspendExempt | |
^`:: | |
{ | |
if (A_IsSuspended) { | |
SoundBeep 392, 150 | |
} else { | |
SoundBeep 261, 150 | |
} | |
Suspend ; Ctrl+Alt+S | |
} | |
#SuspendExempt False | |
; ~ : passes the keydown through | |
; $ : allows sending hotkey itself | |
x::RepeatAllIn1() | |
;g::RepeatLeftRight() | |
; | |
RepeatKeypress(key) { | |
Sleep(100) ;Repeat delay | |
While GetKeyState(key, "P") | |
{ | |
SendInput "{e Down}" | |
Sleep(40) | |
SendInput "{e up}" | |
Sleep(40) | |
} ; ~ passes the keyup through | |
Return | |
} | |
; | |
RepeatAllIn1() { | |
Sleep(100) ;Repeat delay | |
While GetKeyState('x', "P") | |
{ | |
SendInput "{e Down}" | |
SendInput "{f Down}" | |
SendInput "{a Down}" | |
Sleep(20) | |
SendInput "{e up}" | |
SendInput "{f up}" | |
SendInput "{a up}" | |
Sleep(20) | |
SendInput "{e Down}" | |
SendInput "{f Down}" | |
SendInput "{d Down}" | |
Sleep(20) | |
SendInput "{e up}" | |
SendInput "{f up}" | |
SendInput "{d up}" | |
Sleep(20) | |
} ; ~ passes the keyup through | |
Return | |
} | |
RepeatLeftRight() { | |
Sleep(100) ;Repeat delay | |
While GetKeyState('g', "P") | |
{ | |
SendInput "{a Down}" | |
Sleep(50) | |
SendInput "{a up}" | |
Sleep(50) | |
SendInput "{d Down}" | |
Sleep(50) | |
SendInput "{d up}" | |
Sleep(50) | |
} ; ~ passes the keyup through | |
Return | |
} | |
;adadadadadadadadadadadadadadadadadadadadadadad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment