
;==============Command line parameters (leave blank if not desired)================
extraparams = -window -dxlog -debug_steamapi -network_debug -nostartup

;Runs Aok HD with command line parameters designated in Settings

Run, AoK HD.exe %extraparams%, %exeLoc%
    	Sleep, 1000


;Assures Game is the active window

WinWait, Age of Empires II HD, 
IfWinNotActive, Age of Empires II HD, , WinActivate, Age of Empires II HD, 
WinWaitActive, Age of Empires II HD, 

;This script will resize the active window

;Number key will change size of active window

ResizeWin(800,600)

ResizeWin(Width = 0,Height = 0)

{
  WinGetPos,X,Y,W,H,A
  If %Width% = 0
    Width := W

  If %Height% = 0
    Height := H

  WinMove,A,,%X%,%Y%,%Width%,%Height%
}

WinMove, 103, 10  

	Sleep, 1000 