So far I am have a weird issue where the size of the window is not consistent.
The overall screen height is 1080
The taskbar on the bottom should take up 40
I have set the height for the FA window to be 1040. However, this value makes the window sometimes go under the taskbar.(size of the task bar is not changed and lock taskbar option is activated) Anyone have ideas about this?
Temporary solution is to move the taskbar to one of the sides
Also thanks to people on the forums who have provided links to hotkey and provided the scripts.
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#Persistent
procName := "ForgedAlliance.exe"
SetTimer, CheckProc, 2000
Return
CheckProc:
If (!ProcessExist(procName))
Return
WinGet Style, Style, % "ahk_exe " procName
If (Style & 0xC40000)
{
WinSet, Style, -0xC40000, % "ahk_exe " procName ; remove the titlebar and border(s)
WinMove, % "ahk_exe " procName , , 0, 0, 1400, 1040 ; move the window to 0,0 and resize it to fit across 2 monitors.
WinMaximize, % "ahk_exe " procName
WinRestore, % "ahk_exe " procName
}
Return
ProcessExist(exeName)
{
Process, Exist, %exeName%
return !!ERRORLEVEL
}
returnStatistics: Posted by SeraphimLeftNut — 06 Jun 2016, 19:23
]]>