Quicksave/Quickload autoit

In case anyone else wants it, auto it script to make F5 quicksave while playing. If you don’t have 2560x1440 resolution you’ll need to tweak the 2 mouse cursor positions for “Save Game” and “Create new save entry” buttons. Autoit is free, and the cursor finder comes with it (Au3Info).

#include <Constants.au3>

HotKeySet("{F5}", "captureF5")
HotKeySet("{F6}", "captureF6")

While 1
    Sleep(100)
 WEnd

Func captureF5()
   WinWaitActive("Mutant Year Zero: Road to Eden")
   Sleep(500)
   Send("{ESCAPE}") ; Open game menu
   Sleep(500)
   MouseClick("LEFT", 1050, 1350) ; Click 'Save Game'
   Sleep(500)
   MouseClick("LEFT", 1250, 450) ; Click 'Create new save entry'
   Sleep(500)
   Send("{ESCAPE}")  ; Close game menu
EndFunc


Func captureF6()
   WinWaitActive("Mutant Year Zero: Road to Eden")
   Sleep(500)
   Send("{ESCAPE}") ; Open game menu
   Sleep(500)
   MouseClick("LEFT", 1250, 1350) ; Click 'Load Game'
   Sleep(500)
   MouseClick("LEFT", 1250, 500) ; Click most recent save
   Sleep(500)
   Send("{SPACE}") ; Confirm load game
   Sleep(500)
   Send("{ESCAPE}") ; Close game menu
EndFunc
1 Like