Hi guys... I need some serious help.
Problem. I have two games. Transformers War of Cybertron and Fall of Cybertron. Old games. They do not have the option to load on my secondary screen. Also the save folder is the SAME FOLDER (Come on Activision)_.
Fix Plan... an AHK script that moves the window to the secondary monitor and then copies the save FOLDER to the default section in my documents folder.
When the game ends the Default game save folder is moved to a safe space so there is no corruption if the other game is played.
Code I got so far that does not work...
#NoEnv
user1 = "TRANSFORMERS: Fall of Cybertron"
user2 = "TRANSFORMERS: War of Cybertron"
Sleep, 50
If WinActive(user1)
Send, ^!{Up}
If WinActive(user2)
Send 2
Sleep, 50
Return
source = C:\Users\Halo\Documents\My Games\Transformers\Fall of Cybertron
target = C:\Users\Halo\Documents\My Games\Transformers\TransGame
SysGet, mon1, MonitorWorkArea, 1
WinWait, ahk_exe TFOC.exe
SoundBeep, 1500
WinMove, %mon1Left%, %mon1Top%
FileMoveDir, %source%, %target%
If ErrorLevel
MsgBox, 48, Source to target, An error occurred while moving.
WinWaitClose
SoundBeep, 1000
FileMoveDir, %target%, %source%
If ErrorLevel
MsgBox, 48, Target to source, An error occurred while moving.
Any help would be appreciated...
Thank you