Advertisement
Guest User

Obudction AHK Mouse Control Script 1.1

a guest
Aug 25th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. /*
  2. Mouse Gameplay Control AHK script for Obduction
  3. Version 1.0
  4. Made by SoraHjort
  5. Originally posted at http://steamcommunity.com/sharedfiles/filedetails/?id=751476012
  6. Posted here for archival purposes for those who need it.
  7. */
  8. #InstallMouseHook
  9. #InstallKeybdHook
  10. #KeyHistory
  11. #MaxThreadsPerHotkey 10
  12. SetTitleMatchMode 2
  13. MouDir = 1
  14.  
  15. #IfWinActive ahk_exe Obduction-Win64-Shipping.exe
  16. loop
  17. {
  18. IfWinNotExist ahk_exe Obduction-Win64-Shipping.exe
  19. {
  20. exitapp
  21. }
  22. sleep 1000
  23. }
  24. WheelUp::MouDir = 1
  25. WheelDown::MouDir = 2
  26. RButton::
  27. loop
  28. {
  29. If MouDir = 1
  30. {
  31. send {w down}
  32. keywait RButton
  33. send {w up}
  34. }
  35. If MouDir = 2
  36. {
  37. send {s down}
  38. keywait RButton
  39. send {s up}
  40. }
  41. send {RButton}
  42. return
  43. }
  44. MButton::Space
  45. #IfWinActive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement