;Collection of Autohotkey scripts for Forza Horizon 5
;by Maebbie
;get autohotkey from autohotkey.com or via search. get version 2 and version 1.1. autohotkey lets you run macros that emulate keyboard inputs as though they came from your keyboard. This makes them exceedingly hard to detect.
;These are multiple scripts, paste the ones you want into separate text files, save the text file as (yourname.ahk) the double click to run, a green icon with an H will appear in your tray at the bottom right.
;For all scripts press F7 to start and F8 to pause, sometimes you need to reload the script to restart it from the beginning.
;Warning: make sure delays are set properly, each system may have slightly different load times. each Sleep corresponds with a delay of x ms. 1000ms = 1 second
;List of Scripts
;01 Car sniper v2
;02 Car Buyout...er
;03 Skillpoint Farmer (via Event)
;04 Manual Tuner script (to spend 10 mil at the test track)
;05 Make your own scripts
;01 Car sniper v2
;snipes cars while you are semi-afk or full-afk
;start it when you are at the search screen where you can select what to search for and are about to hit confirm with confirm selected
;This uses no colour or value detection, I set the timings in a way where Escape is occluded when Enter is pressed, unless Escape is needed to Escape certain menus. This is why you have around 2 seconds of bloat at the end of each loop where it goes out of the Auction House menu and back in. This is unavoidable, you are still faster than humans with this.
;Warning: make sure the delays are set properly, by buying some cheap cars and by letting it run against a search with no results. Since this uses "Y" for the quick menu it can also clear your search filters if pressed at the wrong timing. This script is particularly delicate.
F7::
Loop
{
Send, {Enter}
Sleep, 125
Send, {Escape}
Sleep, 375
Send, {Escape}
Sleep, 500
Send, {y}
Sleep, 225
Send, {Down}
Sleep, 50
Send, {Enter}
Sleep, 250
Send, {Enter}
Sleep, 300
Send, {Escape}
Sleep, 100
Send, {Escape}
Sleep, 100
Send, {Escape}
Sleep, 100
Send, {Escape}
Sleep, 100
Send, {Escape}
Sleep, 800
Send, {Escape}
Sleep, 1000
Send, {Enter}
Sleep, 1000
Send, {Enter}
Sleep, 125
Send, {Escape}
Sleep, 875
}
Return
*F8::
Suspend ;Suspend Hotkeys off/on
Pause,, 1 ;Pause Script off/on
Send, {w Up}
Send, {Escape Up}
Send, {x Up}
Send, {down Up}
Send, {up Up}
Send, {y Up}
Return
;end-----
-
;Car Buyout...er
;Buys out cars until you nearly hit your 24 hour buy cap, I used it to buy tons of barbie cars for my retirement lol
;start it when you are at the search screen where you can select what to search for and are about to hit confirm with confirm selected
;Can also work to place bids, just remove the one "down" input and the part where it collects the car
F7::
Loop, 48
{
Sleep, 125
Send, {Enter}
Sleep, 3000
Send, {Enter}
Sleep, 4000
Send, {Down}
Sleep, 1000
Send, {Enter}
Sleep, 1000
Send, {Enter}
Sleep, 5000
Send, {Enter}
Sleep, 1000
Send, {Enter}
Sleep, 9000
Send, {Enter}
Sleep, 1000
Send, {Escape}
Sleep, 1500
Send, {Escape}
Sleep, 1500
Send, {Enter}
Sleep, 250
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
}
Return
*F8::
Suspend ;Suspend Hotkeys off/on
Pause,, 1 ;Pause Script off/on
Send, {w Up}
Send, {Escape Up}
Send, {x Up}
Send, {down Up}
Send, {up Up}
Send, {y Up}
Return
;end-----
-
;03 Skillpoint farmer (via Event)
;Use with event sharecode: 383347794
;Use with 2011 Lamborghini Sesto Elemento with its car mastery maxed out (it generates skillchains faster), other cars should be fine too, but you may have to adjust the Sleep timers.
;start the script when you are at the Start Event screen, with Start Event selected. the one where you see your car on the right hand side
;be aware there is a sp cap of 999 so this will cap you out in 1.5 hours or so.
F7::
Loop
{
Send {Enter Down}
Send {Enter Up}
Sleep 5250
Send {w Down}
Sleep 1500
Send {w Up}
Sleep 32750
Send {x Down}
Send {x Up}
Sleep 1000
Send {Enter Down}
Send {Enter Up}
Sleep 5250
}
return
*F8::
Suspend ;Suspend Hotkeys off/on
Pause,, 1 ;Pause Script off/on
Send, {w Up}
Send, {Escape Up}
Send, {x Up}
Send, {down Up}
Send, {up Up}
Send, {y Up}
Return
;end-----
-
;04 Manual Tuner script (to spend 10 mil at the test track)
;This is super niche, but lets say you bought hundreds of barbie cars or plan to and you really like how that one badge looks that you get for spending 10 mil on the test track. Use this script to tune your barbie cars for 30k each and let it run overnight to get your badge.
;start inside the car selection after entering the test track and it asks you for which car to tunr. Select the car to start with, but dont press ok on it.
;Make sure to adjust the number behind Loop, to how many cars you have divided by 2. Also make sure its all the same barbie car.
F7::
Loop, 100
{
Sleep, 125
Send, {Enter}
Sleep, 625
Send, {Enter}
Sleep, 4203
Send, {Left}
Sleep, 578
Send, {Enter}
Sleep, 1828
Send, {Right}
Sleep, 688
Send, {Enter}
Sleep, 2234
Send, {Enter}
Sleep, 1203
Send, {Enter}
Sleep, 1469
Send, {Enter}
Sleep, 10203
Send, {Escape}
Sleep, 1281
Send, {Right}
Sleep, 969
Send, {Enter}
Sleep, 2594
Send, {x}
Sleep, 550
Send, {Up}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Enter}
Sleep, 1391
Send, {Down}
Sleep, 1000
Send, {Enter}
Sleep, 1453
Send, {Enter}
Sleep, 4109
Send, {Left}
Sleep, 594
Send, {Enter}
Sleep, 2141
Send, {Right}
Sleep, 593
Send, {Enter}
Sleep, 2047
Send, {Enter}
Sleep, 969
Send, {Enter}
Sleep, 1312
Send, {Enter}
Sleep, 10000
Send, {Escape}
Sleep, 1719
Send, {Right}
Sleep, 609
Send, {Enter}
Sleep, 1578
Send, {x}
Sleep, 550
Send, {Up}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Down}
Sleep, 125
Send, {Enter}
Sleep, 1250
Send, {Right}
Sleep, 500
Send, {Up}
Sleep, 500
}
Return
*F8::
Suspend ;Suspend Hotkeys off/on
Pause,, 1 ;Pause Script off/on
Send, {w Up}
Send, {Escape Up}
Send, {x Up}
Send, {down Up}
Send, {up Up}
Send, {y Up}
Return
;end-----
-
;05 Make your own scripts
;You can easily make your own scripts by recording inputs using macrocreator.com (Pulover's Macro Creator), once you have your input, export them via File - Export to AHK.
;Touch them up in a text editor using the scripts above as reference.
;Having more delay is often good to make scripts afk proof.