Advertisement
7v_5

Mouse Mapping and Restart (AHK)

Jan 24th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6.  
  7. SetKeyDelay, 1
  8. F1::Suspend, Toggle ; This is the toggle script, press F1 To toggle the whole script.
  9.  
  10.  
  11. XButton1::D ; This is the script that maps Button1(The Page Back button) to D
  12.  
  13.  
  14. F2::Suspend, Toggle ; When Pressing F2 It will toggle the S Script, To PRESS S right click. (I made this toggleable as the turn key for most games is right click)
  15. RButton::S
  16.  
  17.  
  18. XButton2::A ; This is the script that maps Button2(The Page Forward button) to A
  19.  
  20.  
  21. MButton:: ; This Script Is the spam space script, allowing for BHOPPING without your keyboard.
  22. RepeatKey := !RepeatKey
  23. If RepeatKey
  24. SetTimer, SendTheKey, 45 ; The "5" here is the number of milliseconds between repeats.
  25. Else
  26. SetTimer, SendTheKey, Off
  27. Return
  28.  
  29. SendTheKey:
  30. SendInput {Space}
  31. Return
  32.  
  33.  
  34. LButton:: ; This script is for Walking, it will HOLD in forward for you by left clicking.
  35. KeyDown := !KeyDown
  36. If KeyDown
  37. SendInput {W down}
  38. Else
  39. SendInput {W up}
  40. Return
  41.  
  42. SetKeyDelay, 1 ; This section will allow Toggling the restart script incase you want to press X while chatting and not restart
  43. ^+R::Suspend, Toggle
  44.  
  45.  
  46. #IfWinActive, Roblox ; This Command will make the script only work on roblox
  47. ~X:: ; This means X capitals or not
  48. loop, 1
  49. {
  50. Send //
  51. Send R ; This whole part is just the section that makes the restart script. (The loop part is just to make it easier to read)
  52. Send {enter}
  53. }
  54. return
  55.  
  56. ; Left click to toggle forwards walking.
  57. ; Right click to go backwards (not toggled)
  58. ; Middle click to spam jump for bhopping
  59. ; Page forward button to go Left
  60. ; Page backward button to go Right
  61. ; X to restart
  62. ; F1 To pause the script
  63. ; F2 to pause the backwards key (sometimes you dont want right click to be backwards and instead to be turn whenever your not playing surf
  64. ; CTRL SHIFT R to pause / play the Restart script.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement