Advertisement
Dweeb

AHK setup for MGS Ground Zeroes

Dec 23rd, 2014
948
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. ;Features:
  2. ;Can minimize fullscreen borderless with a key press
  3. ;Can toggle scope on/off
  4. ;Can toggle walk on/off
  5. ;Can toggle zoom on/off
  6. ;Can bind side mouse buttons to a key
  7. ;Can bind tilde key(I set it to radio)
  8.  
  9. ;Things I tried to do but suck shit:
  10. ;Bind a key to cycle between weapons. Ground Zeroes for whatever reason hates the scripts I found and will hold the key pressed so you have to double tap which makes the thing redundant
  11. ;Bind the mouse wheel to weapons, same deal as above with more bugs
  12. ;Make the script only work when GZ is active, not sure what I'm doing wrong there. I added in some hotkeys to get suspend the script for when you're not in-game instead.
  13. ;Have a hotkey to slow the mouse down while pressed(for scopes etc).
  14.  
  15. Appskey::suspend ;Press this to stop the script from working
  16. Ralt::WinMinimize, A ;Press right alt to minimize the borderless fullscreen
  17. return
  18.  
  19. Rcontrol::Reload ;Press R ctrl to reload the script if you make edits
  20. Sleep 1000 ; If successful, the reload will close this instance during the Sleep, so the line below will never be reached.
  21. MsgBox, 4,, The script could not be reloaded. Would you like to open it for editing?
  22. IfMsgBox, Yes, Edit
  23. return
  24.  
  25. #NoEnv ;Not sure what this is
  26. SendMode Input ;Same with this, maybe it helps
  27. return
  28. ;Wheel key binds didn't work well for me but maybe they will for you
  29. ;$WheelUp::t
  30. ;$WheelDown::f
  31. return
  32. ;Cycle Guns with tab, his doesn't work well either
  33. tab::Send, % Toggle = 1 ? ( "2", Toggle := 0 ) : ( "1", Toggle := 1 )
  34. return
  35.  
  36. ;Hotkeys
  37.  
  38. $xbutton1::c ;Side Mouse 1
  39. $XButton2::u ;Side Mouse 2
  40. `::p ;Tilde key bound to radio
  41. ;capslock:: ;capslock unbound
  42. return
  43.  
  44.  
  45. ;Toggle keys, feel free to rebind them.
  46. ;Press T to toggle Zoom
  47. $t::
  48. {
  49. if(t_toggle := !t_toggle)
  50. send {t down}
  51. else
  52. send {t up}
  53. }
  54. return
  55. ;Press q to toggle Walk
  56. $q::
  57. {
  58. if(q_toggle := !q_toggle)
  59. send {q down}
  60. else
  61. send {q up}
  62. }
  63. return
  64. ;Press g to toggle Binoculars
  65. $g::
  66. {
  67. if(g_toggle := !g_toggle)
  68. send {g down}
  69. else
  70. send {g up}
  71. }
  72. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement