1. #Requires AutoHotkey v2.0
  2. #SingleInstance Force
  3. #UseHook True
  4. #InstallKeybdHook
  5.  
  6. #HotIf WinActive("ahk_exe hitman3.exe")
  7.  
  8. global instinctToggle := false
  9.  
  10. ; === Toggle Instinct with CapsLock (change to F4, XButton1, etc. if you prefer) ===
  11. CapsLock::
  12. {
  13. global instinctToggle
  14. instinctToggle := !instinctToggle
  15.  
  16. if (instinctToggle) {
  17. Send "{Ctrl down}" ; Hold for Instinct ON
  18. ToolTip "Instinct: ON (Ctrl held)", 30, 30
  19. } else {
  20. Send "{Ctrl up}" ; Release = Instinct OFF
  21. ToolTip "Instinct: OFF", 30, 30
  22. }
  23. SetTimer () => ToolTip(), -1200
  24. }
  25.  
  26. ; === Panic / Instant Release (F3) ===
  27. F3::
  28. {
  29. global instinctToggle
  30. if (instinctToggle) {
  31. Send "{Ctrl up}"
  32. instinctToggle := false
  33. ToolTip "PANIC - Instinct OFF", 30, 30
  34. SetTimer () => ToolTip(), -800
  35. }
  36. }
  37.  
  38. ; Optional: Allow real Ctrl when holding Shift (safety)
  39. +Ctrl::Send "{Ctrl}"
  40.  
  41. #HotIf