Forged Alliance Forever Forged Alliance Forever Forums 2016-06-15T01:39:29+02:00 /feed.php?f=2&t=12547 2016-06-15T01:39:29+02:00 2016-06-15T01:39:29+02:00 /viewtopic.php?t=12547&p=128719#p128719 <![CDATA[Re: hotkey borderless window script issue]]>
go to my thread where this script originated from : viewtopic.php?f=2&t=9778

Statistics: Posted by tatsu — 15 Jun 2016, 01:39


]]>
2016-06-06T19:23:52+02:00 2016-06-06T19:23:52+02:00 /viewtopic.php?t=12547&p=128149#p128149 <![CDATA[hotkey borderless window script issue]]> 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
}
return

Statistics: Posted by SeraphimLeftNut — 06 Jun 2016, 19:23


]]>