gghf

Sea of Thieves Reduce Hold on Items fix

Oct 6th, 2021 (edited)
1,742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. This script exists to help people with repetitive strain injuries to their hands,
  3. by reducing the amount of double-clicks needed, as well as reducing the need to physically
  4. hold down a mouse button.
  5.  
  6. If you hit 'k', your next mouse click will hold instead.
  7. Click again with the SAME button, or 'k', to stop holding.
  8. While holding with one button, you can click the other button without losing the hold.
  9.  
  10. For a different keybind, change 'k' to a different letter or button below.
  11. See AHK documentation List of Keys for button names:
  12. https://www.autohotkey.com/docs/KeyList.htm
  13.  
  14. ******************************************************
  15. MAKE SURE YOU TURN OFF "Reduce Hold on Items" IN GAME!
  16. ******************************************************
  17.  
  18. ***********
  19. TO INSTALL,
  20. ***********
  21. download and install AutoHotkey from https://www.autohotkey.com/
  22. Then rightclick desktop, create new AHK script, and paste everything into it.
  23. You can then double click the script, every time you play SoT, or add a shortcut
  24. to the script into your Startup folder to have it start with Windows.
  25. */
  26.  
  27. #NoEnv
  28. SendMode Input
  29. SetWorkingDir %A_ScriptDir%
  30.  
  31. #If WinActive("ahk_exe SoTGame.exe") ;is Sea of Thieves focussed?
  32.  
  33. ~k::
  34.   toggle := !toggle
  35.   if !toggle
  36.     Send, {LButton Up}
  37.     Send, {RButton Up}
  38.   return
  39.  
  40.  
  41. #if toggle && WinActive("ahk_exe SoTGame.exe")
  42.   $LButton::
  43.     Send, {LButton Down}
  44.     toggle := 0
  45.     return
  46.  
  47.   $RButton::
  48.     Send, {RButton Down}
  49.     toggle := 0
  50.     return
  51. #if
Advertisement
Add Comment
Please, Sign In to add comment