Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; OPTIONS
- ;====================================================================================================
- ;#NoEnv ;no idea
- ;#UseHook ;no idea
- #SingleInstance Force ;no idea
- #IfWinActive ahk_class DarkSouls2 ;This means the script only runs in the Dark Souls 2 window.
- #IfWinActive ahk_class FDPclass ;This means the script only runs in the Dark Souls 3 window.
- SendMode Input ;no idea
- SetWorkingDir %A_ScriptDir% ;no idea
- ;============================== Main Script ==============================
- ;jumping
- t:: ;this is the button to trigger jumping
- Send {w up}{a up}{s up}{d up} ;stops your movement
- sleep 31 ;must be high so DaS3 registers
- Send {W down} ;rest press W and E in slight delay and releases all keys, beware you
- Sleep 15 ;will be motionless at the end of the action. So issue some direction command right away
- Send {E down} ;this must be your R2 button. Edit it here to your key, or set E as R2 in game. Its just my key layout
- Sleep 50
- Send {W up}
- Send {E up}
- ;At the end of the move, detects what direction you are holding and represses it
- Sleep 100
- if (GetKeyState("W", "P")){
- Send {W down}
- }
- if (GetKeyState("A", "P")){
- Send {A down}
- }
- if (GetKeyState("D", "P")){
- Send {D down}
- }
- if (GetKeyState("S", "P")){
- Send {S down}
- }
- return
- ;kick
- c:: ;its c this time for kick
- Send {w up}{a up}{s up}{d up} ;same
- sleep 31
- Send {W down}
- Sleep 15
- Send {Z down} ;This must be your R1 keyboard button
- Sleep 50
- Send {W up}
- Send {Z up}
- ;At the end of the move, detects what direction you are holding and represses it
- Sleep 100
- if (GetKeyState("W", "P")){
- Send {W down}
- }
- if (GetKeyState("A", "P")){
- Send {A down}
- }
- if (GetKeyState("D", "P")){
- Send {D down}
- }
- if (GetKeyState("S", "P")){
- Send {S down}
- }
- return
- ;Pressing Escape will always ensure that hotkeys are turned on
- ;Double pressing it will send the actuall escape command
- Escape::
- if (overlay = false){
- Send {Escape Down}
- Sleep 50
- Send {Escape Up}
- }
- else{
- }
- overlay := false
- Hotkey, t, On
- Hotkey, c, On
- return
- Home::
- Send {Home Down}
- Sleep 50
- Send {Home Up}
- overlay := !overlay
- if (overlay = true){
- Hotkey, t, Off
- Hotkey, c, Off
- }
- else{
- Hotkey, t, On
- Hotkey, c, On
- }
- Sleep, 500
- return
Add Comment
Please, Sign In to add comment