[Windows-only] Play in Fullscreen: easy how-to

Discussion in 'Support!' started by SXX, July 28, 2013.

  1. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    I'm playing on Linux and here it's really easy to toggle any window into fake border less fullscreen using standard tools, but I have few friends who playing from Windows, so I make simple script to run PA in fullscreen. It's was require modification for different resolutions, so I not posted it here.

    For last week there was many request about fullscreen mode, so I fix script and now you can use it easily:
    1. Download and install AutoHotKey (free and open-source software):
      http://www.autohotkey.com/
    2. Download and extract "fullscreen.ahk_v1.zip" archive.
    3. Run "fullscreen.ahk" by double click or make right click and choose "Run Script" menu option.
    4. Now you should see green "H" icon in system tray.
    5. Run PA or just select game window.
    6. Press Ctrl+Alt+F11 hotkey to enable/disable fullscreen
    Fullscreen will looks exactly like traditional fullscreen: no borders, no panels, just game screen.

    I only checked it on Windows 7, but it's also reported as working on Windows 8. If you have any issues let me know and I'll fix them.
    There is one known issue with UAC privilege escalation. E.g if you run launcher and UAC asking you for administrative access, then if you start game script probably won't able to control game window. To bypass the problem try to run script as administrator or just try to run game directly w/o launcher.

    * * * If you use Windows Vista and script working for you, please report about that in this topic. * * *

    Warning! This script will work on multi monitor setup, but only if you run PA on first monitor.

    Attached Files:

    Last edited: September 21, 2013
    class101 likes this.
  2. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Re: [Windows-only] How-To run game in borderless fullscreen

    You can also just copy script code:
    Code:
    ^!F11::
    WinGetTitle, currentWindow, A
    IfWinExist %currentWindow%
    {
            NeedWidth := (A_ScreenWidth)+2
            NeedHeight := (A_ScreenHeight)+2
            
            ; Check if game already in fullscreen
            WinGetPos, , , Width, Height
            If (Width != NeedWidth and Height != NeedHeight)
            {
                    WinSet, Style, ^0xC00000 ; toggle title bar
                    WinSet, Style, -0x800000 ; hide thin-line border
                    WinSet, Style, -0x40000 ; hide thickframe/sizebox
                    
                    ; Resize game window
                    WinMove, , , -1, -1, NeedWidth, NeedHeight
            }
            Else
            {
                    WinSet, Style, ^0xC00000 ; toggle title bar
                    WinSet, Style, +0x800000 ; show thin-line border
                    WinSet, Style, +0x40000 ; show thickframe/sizebox
                    
                    WinRestore
                    WinMaximize
            }
    }
    return
  3. glinkot

    glinkot Active Member

    Messages:
    250
    Likes Received:
    28
    This is *really* good! Makes it that much more immersive when you're not seeing chrome etc sitting along the taskbar :)
  4. sneakyness

    sneakyness Member

    Messages:
    106
    Likes Received:
    5
    Yeah, this is seriously awesome. Thanks <3
  5. ozolus

    ozolus New Member

    Messages:
    20
    Likes Received:
    3
    You are amazing. <3
  6. iampetard

    iampetard Active Member

    Messages:
    560
    Likes Received:
    38
    Every window works except for PA. Wat do?
  7. Clopse

    Clopse Post Master General

    Messages:
    2,535
    Likes Received:
    2,865
    great work man. thanks
  8. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    It's will be interesting to know why. Have you still use Skype or any other IM?

    I can just add few debug lines in script, but fast communication will be more helpful for debugging. :)
  9. NapoleonSolo

    NapoleonSolo New Member

    Messages:
    20
    Likes Received:
    0
    Don't know if you've been answered yet but I had the same problem. Running the script as an Administrator worked for me.

    FYI sxx, I'm on Win8 btw and it works. Thanks for the mod!

    While I am here is there a workaround for the frame drops to like 15fps? I know its alpha and not optimised but a lot of videos I watch seem to run better. If I'm mistaken and everyone gets the drops, I'll just carry on as I am. But if there is a 'fix' I would like to try it!

    I run i7 950 @ 4 GHz, 6 GB 1600 MHz RAM and GTX 570 SLI (single card atm, though).

    Cheers!
  10. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Yep, Petard have same problem on Windows 7.

    Thanks for report, I'll add notice about Win8 in first post.

    Grab latest drivers from Nvidia website and disable shadows completely (e.g not set graphics on low, just turn shadows off), it's only way right now.
  11. lilbthebasedlord

    lilbthebasedlord Active Member

    Messages:
    249
    Likes Received:
    80
  12. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    What? :?
  13. KennyBall

    KennyBall New Member

    Messages:
    26
    Likes Received:
    1
    THIS IS AWESOME!!!!
    I run PA now in Trippelscreen
    5760x1080 (6010x1080 modified)
    What a Freaking experience, Thank you, thank you thank you....... damn. now it is almost 4 am in Norway, get some sleep? noooooo way now it is PA in Surround mode.... thank you again :D
  14. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    So the game now has a fullscreen mode of it's own but the game's fullscreen seems to be far less useful than this one (or the ones achieved by other similar scripts). At least for me I get a pretty nasty flickering whenever the PA "fullscreen" window loses or gains the focus. This does not happen with the scripts. Whatever PA does in it's own fullscreen mode my setup doesnt like it at all.

    I am on a Radeon 7850/2G and use 3 screens.

    Also the game dooesnt save the fullscreen/window setting. It keeps fullscreen all the time, which seems to lag the game right at startup.

    The latest patch fixed that, it now saves the setting like it should
    Last edited: September 28, 2013

Share This Page