hotkey borderless window script issue

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

hotkey borderless window script issue

Postby SeraphimLeftNut » 06 Jun 2016, 19:23

Since full screen mode, no longer really works half the time, I've had to adapt the borderless windowed.
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
no ui lag: https://www.youtube.com/watch?v=3MdcVdL2kIY
I think this is going to be fun
User avatar
SeraphimLeftNut
Contributor
 
Posts: 975
Joined: 10 Jul 2012, 19:46
Has liked: 3 times
Been liked: 219 times
FAF User Name: TA4Life

Re: hotkey borderless window script issue

Postby tatsu » 15 Jun 2016, 01:39

problem is you're using their edited version rather than mine.

go to my thread where this script originated from : viewtopic.php?f=2&t=9778
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest