Advertisement
Guest User

Untitled

a guest
Apr 20th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. ; LClick -> O/o
  2. ; RClick -> P/p
  3. ; WheelUp -> J/j
  4. ; WheelDown -> L/l
  5. ; enter -> enter & e
  6. ; 2 -> o & w = shield bash
  7. ; 3 -> p & w = jump attack
  8. ; F1 -> Start suspend script
  9. ; F2 -> Stop suspend script
  10. ;
  11. ; LCLick -> Terminate Script
  12. ;
  13. ; * In front of the hotkey will make the hotkey still run even if a "modifier" like Shift is being held.
  14.  
  15. #IfWinActive, ahk_class DarkSouls2
  16. {
  17.  
  18. *LButton::o
  19.  
  20. *RButton::p
  21.  
  22. *WheelUp::
  23. SetKeyDelay, 0, 30
  24. Send {j}
  25. return
  26.  
  27. *Wheeldown::
  28. SetKeyDelay, 0, 30
  29. Send {l}
  30. return
  31.  
  32. *Enter::
  33. Send {Enter down}
  34. Sleep 20
  35. Send {e down}
  36. Sleep 20
  37. Send {Enter up}
  38. Send {e up}
  39. return
  40.  
  41. ;Shield bash
  42. *2::
  43. SetKeyDelay, 0, 30
  44. Send {w}
  45. SetKeyDelay, 0, 30
  46. Send {o}
  47. return
  48.  
  49. ;Jump attack
  50. *3::
  51. SetKeyDelay, 0, 30
  52. Send {w}
  53. SetKeyDelay, 0, 30
  54. Send {p}
  55. return
  56.  
  57.  
  58. F1::
  59. SoundPlay, %A_WinDir%\Media\ding.wav
  60. Suspend On
  61. return
  62. F2::
  63. Suspend Off
  64. SoundPlay, %A_WinDir%\Media\chimes.wav
  65. return
  66.  
  67. }
  68.  
  69. #IfWinNotExist, ahk_class DarkSouls2
  70. {
  71. LButton::ExitApp
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement