Forged Alliance Forever Forged Alliance Forever Forums 2016-05-23T23:55:16+02:00 /feed.php?f=2&t=12458 2016-05-23T23:55:16+02:00 2016-05-23T23:55:16+02:00 /viewtopic.php?t=12458&p=127438#p127438 <![CDATA[Re: Surface Book/ Windows 10 issue]]> Statistics: Posted by arkitect — 23 May 2016, 23:55


]]>
2016-05-23T06:24:21+02:00 2016-05-23T06:24:21+02:00 /viewtopic.php?t=12458&p=127382#p127382 <![CDATA[Re: Surface Book/ Windows 10 issue]]> viewtopic.php?f=2&t=9778

What I did was take into his script a function that sets the resolution to 1080 and one that changes the dpi scale. I didn't write these I just slapped some things together from google and lucky me it totally worked. This is the complete script:

Code:
    #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)
        {
       DPI_F:=DPIFactor()
       ChangeDisplaySettings( (ClrDep:=32) , (Wid:=1920) , (Hei:=1080) , (Hz:=60) )
            WinSet, Style, -0xC40000, % "ahk_exe " procName
            WinMinimize, % "ahk_exe " procName
            WinMaximize, % "ahk_exe " procName
          Run, %comspec% /c process -a forgedalliance.exe 111111111110
          Run, %comspec% /c process -p forgedalliance.exe high
        }
        Return

    ProcessExist(exeName)
    {
       Process, Exist, %exeName%
       return !!ERRORLEVEL
    }
    return




DPIFactor()
{
RegRead, DPI_value, HKEY_CURRENT_USER, Control Panel\Desktop\WindowMetrics, AppliedDPI
; the reg key was not found - it means default settings
; 96 is the default font size setting
if (errorlevel=1) OR (DPI_value=96 )
   return 1
else
   Return  DPI_Value/96
}



ChangeDisplaySettings( cD, sW, sH, rR ) {
  VarSetCapacity(dM,156,0), NumPut(156,2,&dM,36)
  DllCall( "EnumDisplaySettings", UInt,0, UInt,-1, UInt,&dM ), NumPut(0x5c0000,dM,40)
  NumPut(cD,dM,104),  NumPut(sW,dM,108),  NumPut(sH,dM,112),  NumPut(rR,dM,120)
  Return DllCall( "ChangeDisplaySettings", UInt,&dM, UInt,0 )
}

Statistics: Posted by benikens — 23 May 2016, 06:24


]]>
2016-05-23T00:58:24+02:00 2016-05-23T00:58:24+02:00 /viewtopic.php?t=12458&p=127373#p127373 <![CDATA[Re: Surface Book/ Windows 10 issue]]> Statistics: Posted by benikens — 23 May 2016, 00:58


]]>
2016-05-19T01:39:15+02:00 2016-05-19T01:39:15+02:00 /viewtopic.php?t=12458&p=127185#p127185 <![CDATA[Re: Surface Book/ Windows 10 issue]]> Statistics: Posted by benikens — 19 May 2016, 01:39


]]>
2016-05-18T06:21:52+02:00 2016-05-18T06:21:52+02:00 /viewtopic.php?t=12458&p=127138#p127138 <![CDATA[Re: Surface Book/ Windows 10 issue]]> viewtopic.php?f=3&t=11998&p=123685#p123685

Statistics: Posted by arkitect — 18 May 2016, 06:21


]]>
2016-05-17T13:41:12+02:00 2016-05-17T13:41:12+02:00 /viewtopic.php?t=12458&p=127089#p127089 <![CDATA[Re: Surface Book/ Windows 10 issue]]> http://pastebin.com/A72tcTXP forever.log
I can't find a game.log and I am now having issues getting supreme commander to launch through faf though I can launch it out of steam

Statistics: Posted by benikens — 17 May 2016, 13:41


]]>
2016-05-17T13:10:16+02:00 2016-05-17T13:10:16+02:00 /viewtopic.php?t=12458&p=127088#p127088 <![CDATA[Re: Surface Book/ Windows 10 issue]]>
nothing will happen without logs, nothing will be considered worth looking at unless in tech support

Statistics: Posted by biass — 17 May 2016, 13:10


]]>
2016-05-17T12:45:15+02:00 2016-05-17T12:45:15+02:00 /viewtopic.php?t=12458&p=127087#p127087 <![CDATA[Surface Book/ Windows 10 issue]]> Statistics: Posted by benikens — 17 May 2016, 12:45


]]>