Advertisement
ccd2b955-be85-4109-9

Sneak like behaviour for the TheHunter Call of the Wild

Feb 22nd, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* ----------------------------------------------------------------------------
  2. Sneak like behaviour for the TheHunter Call of the Wild
  3.  
  4. The following is a script for AutoHotKey (https://autohotkey.com/) whilst you hold the 'q'
  5. key it will repeatedly:
  6. Hold 'w' down for 250ms, release it for 10 to 250ms repeat
  7.  
  8. Usage Instructions
  9. ------------------
  10. 1. Install AutoHotkey: -
  11.    1.a Download from https://autohotkey.com/download/ahk-install.exe.
  12.    1.b Run the installer (ahk-install.exe).  
  13.    1.c On the "Please select the type of installation you wish to perform." dialog select "Express Installation".
  14.    2.d On the installation complete dialog select "Exit".
  15.  
  16. 2. Copy this script and save it into a new file: -
  17.    2.a Open NotePad.
  18.    2.b Paste this script into notepad.
  19.    2.c Click "File" -> "Save As...".
  20.    2.d In the file name text box paste "%userprofile%\Desktop\TheHunterCotW.ahk" including the quotes.
  21.    
  22. 3. Double click the "TheHunterCotW.ahk" file on your desktop.
  23.  
  24. 4. Start TheHunterCotW from Steam
  25.  
  26. 5. Whilst in game holding 'Q' will initiate the sneak like function which simply repeatedly taps the 'W' key for you.
  27.    You can adjust the rate at which you sneak with the "Page Up" and "Page Down" Keys
  28.  
  29. Trouble Shooting
  30. ----------------
  31. 1. If you double click the "TheHunterCotW.ahk" and it opens notepad pay special attention to the quotes in 2.d above.
  32.  
  33. 2. If the script doesn't work in game it may be because you're running the TheHunterCotW as an administrator. In this case you will also need to run TheHunterCotW.ahk as administrator.
  34.  
  35. 3. If none of these solutions have worked for you take a look at the responses you may find somebody else has posted a solution.
  36.  
  37. -----------------------------------------------------------------------------*/
  38.    
  39. Delay=50
  40. Step=10
  41.  
  42. #IfWinActive ahk_exe theHunterCotW_F.exe
  43.  
  44. $q::
  45.     While GetKeyState("q","P")
  46.     {
  47.         Send {w Down}
  48.         Sleep, 250 ; The amount of time the W key is held down
  49.         Send {w Up}
  50.         Sleep, Delay ; The amount of time the W key is released before being held down again
  51.     }
  52.     Return
  53.  
  54. PgDn::
  55.     if Delay > 10
  56.     {
  57.         Delay:= Delay-Step
  58.         SoundBeep, Delay * 10, 100
  59.     }
  60.     Return
  61.  
  62. PgUp::
  63.     if Delay < 250
  64.     {
  65.         Delay:= Delay+Step
  66.         SoundBeep, Delay * 10, 100
  67.     }
  68.     Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement