Page 1 of 1

Alarineths Gaming Scripts

Posted: 13 May 2018, 18:08
by alarineth
I will post scripts for regular gaming script needs that I make here.
I also have a few performance scripts that can be found here https://autohotkey.com/boards/viewtopic ... 10#p215310

Soldiers Toolkit: 8 hotkeys 1-8 easily reachable that do nifty things that help your gaming experience / exits the script.

Code: Select all

;Soldiers Toolkit
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Burst Shot "3 shot burst duh :P"
   $*1::
		Send {LButton up}
		Sleep 50
		Send {LButton down}
                sleep 50
                Send {LButton up}
                sleep 50
		Send {LButton down}
                sleep 50
                Send {LButton up}
                sleep 50
                Send {LButton down}
   
Return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Trail Finder "continue running forward with w"
2::
Toggle := !Toggle
If (Toggle)
{
	Send {w down}
} Else {
	Send {w up}
}
Return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Take Cover! "ctrl held down"
3::
Toggle := !Toggle
If (Toggle)
{
	Send {Ctrl down}
} Else {
	Send {Ctrl up}
}
Return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Rambo "rapid fire"
$4::
  KeyWait, 4
  Send, {lbutton down}
  KeyWait, 4, D
  KeyWait, 4
  Send, {lbutton up}
Return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Vigilance "toggle ads"
$5::
  KeyWait, 5
  Send, {rbutton down}
  KeyWait, 5, D
  KeyWait, 5
  Send, {rbutton up}
Return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Deadshot "Sniper Mode"
$6::
   KeyWait, 6
   SniperMode(1) 
   KeyWait, 6, D
   KeyWait, 6
   SniperMode(0)
return

SniperMode(m){
   static b := 0, c := DllCall("SystemParametersInfo", UInt, 0x70, UInt, 0, UIntP, b, UInt, 0)
   DllCall("SystemParametersInfo", UInt, 0x71, UInt, 0, Ptr, m ? c := 2 : b, UInt, 0)
}                                      ; Set sniper mouse speed, c :=(1-20 range only!)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Soldiers Sprint "lalt held in to sprint"
$7::
  KeyWait, 7
  Send, {lalt down}
  KeyWait, 7, D
  KeyWait, 7
  Send, {lalt up}
Return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Muscle Memory "while toggled reloads your weapon every 5 seconds while mouse isnt moving
Toggle := 1


$8::
 If toggle = 1
 {
  toggle = 0
  SetTimer, Check, 5000
 }
  else
  {
   toggle = 1
   SetTimer, Check, Off
  }
Return

Check:
IfGreater, A_TimeIdle, 5000
{
  Send, {R down}
  Sleep, 50
  Send, {R up}
  Sleep, 5000
}
Return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Scavenger "autoloot toggle"
9::
RepeatKey := !RepeatKey
If RepeatKey
	SetTimer, SendTheKey, 100	; The "100" here is the number of milliseconds between repeats.
Else
	SetTimer, SendTheKey, Off
Return

SendTheKey:
SendInput e
Return


/::
Exitapp
Make sure to run it as administrator.
Different games allow different things to work ingame, If some commands don't work out the way you want them to its probably the game not allowing it to work right.

Credit goes to xatmo, The autohotkey discord server, And google. I do not take credit for the scripts asmuch as I take credit for the imagination of making these scripts.