Trying the same thing but it's very tricky to do with ahk. Did you find a good solution
Update:
Here is the autohotkey v1 code that works for me:
; Set the working directory to the game's path
SetWorkingDir, C:\ZOOM PLATFORM\Strategy First\FlatOut - Ultimate Carnage\
; Run the game executable
Run, fouc.exe
; Wait for the game window to appear
WinWait, FlatOut Ultimate Carnage v1.0,, 10
; If the window is found, bring it to the foreground
IfWinExist, FlatOut Ultimate Carnage v1.0
{
; Send a click to the OK button using the control's text
ControlClick, Button1, FlatOut Ultimate Carnage v1.0, , , NA
}