This is what I want the script to do to help me in a game called Satisfactory
- t == press and hold e
- g == rapid fire press e
- b == press and hold Left Mouse Button
- v == press and hold w, press v or w or s or a or d to stop holding down w
- F11 == halts any recurring loops, incase you forget what is turned on or get confused. Simply resets everything.
- p == Pause Script
Code: Select all
#SingleInstance
/*
NOTES This is what I would like the sctript to do:
t == press and hold e
g == rapid fire press e
b == press and hold Left Mouse Button
v == press and hold w, press v or w or s or a or d to stop holding down w
F11 == halts any recurring loops, incase you forget what is turned on or get confused. Simply resets everything.
p == Pause Script
*/
paused := false
; -------------------------------------------------------------------------------------------------------------
; F11 halts any latent executions, in case you forget the state of your toggles!
; plays a little beep sound
; -------------------------------------------------------------------------------------------------------------
F11::
settimer, dogather, off
Click, up, X2
Click, up
SoundBeep, 300, 100
Return
; -----------------------------------------------------------------------------------------------------------------------------------------------
; Press v to move forward wioth out touching anything, Press w to stop autorunning.
; -----------------------------------------------------------------------------------------------------------------------------------------------
v::
If GetKeyState("w")
Send {w Up}
Else
Send {w Down}
Return
; -------------------------------------------------------------------------------------------------------------
; press g to repeatadly press e, press g again to stop.
; -------------------------------------------------------------------------------------------------------------
$g::
gather := not gather
if gather
{
settimer, dogather, 40
}
else
{
settimer, dogather, off
}
Return
; -------------------------------------------------------------------------------------------------------------
; the dogather function simply clicks mouse button 2 a single time, which is my interact key.
; the timer defined above is therefore basically executing rapidfire left clicks (40 milliseconds apart)
; -------------------------------------------------------------------------------------------------------------
dogather:
Send, e
Return
; -------------------------------------------------------------------------------------------------------------
; press t to hold down e
; -------------------------------------------------------------------------------------------------------------
t::
if (A_TimeSincePriorHotkey < 400)
SendInput {e down}
else
SendInput e
Return
; -------------------------------------------------------------------------------------------------------------
; Press b to hold down left mouse click
; -------------------------------------------------------------------------------------------------------------
b::
holdbutton1 := not holdbutton1
if holdbutton1
{
Click, down
}
else
{
Click, up
}
Return
; -------------------------------------------------------------------------------------------------------------
; press p to pause all scripts.
; -------------------------------------------------------------------------------------------------------------
p::
Suspend
Pause, , 1
paused := not paused
if not paused
{
SoundBeep, 600, 100
SoundBeep, 700, 100
Reload
}
else
{
SoundBeep, 700, 100
SoundBeep, 600, 100
}
Return
;--------------------------- Unused -----------------------------------------
; -------------------------------------------------------------------------------------------------------------
; Remape a mouse button
; -------------------------------------------------------------------------------------------------------------
;XButton1::ESC
Code: Select all
@echo off
"D:\Applications\Games\Epic\SatisfactoryEarlyAccess\FactoryGame.exe"
"C:\Program Files\AutoHotkey\autohotkey.exe" "E:\Archive\_Cloud\Dropbox\Apps\Satisfactory AutoHotKey.ahk"