Interstellar Rift

Interstellar Rift

Not enough ratings
Borderless Window mode / fake Fullscreen
By ~* BiZZ Keryear *~
Makes windowed games borderless and resizes them to fullscreen
   
Award
Favorite
Favorited
Unfavorite
Intro
Want to play in borderless window mode / fake fullscreen?
Don't want to till they added it in?
I have written a tiny AHK script for this occasion.
Should work with almost all applications.
Known limitations
  1. Taskbar might get in the way, better to make it auto hide.
  2. known not to work well with Unity games. They tend to pop back the bars. just apply it again if needed.
  3. As it is it does only work on the primary monitor.
  4. makes lights stripy when steam overlay is not active. (occures after beaming)
    http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=495383705
Instructions
Recommended Way:
  1. get and install ahk (get AHK here: http://ahkscript.org/ ) if not done already
  2. Get the code:
    • copy one of the codes in this Guide
      1. paste it into notepad, or similar, like Notepad++.
        Word, Wordpad, or alike DOES NOT WORK(means anything that allows you to format text does not work)
      2. save it as universal_fake_fullscreen.ahk
        IMPORTANT: the extension has to be .ahk or it will not work
    • OR download it from Pastebin: ( pastebin.com/9ZVX0eeB )
      1. click download link (fairly at top at left side) or do as I said for the code in this guide
      2. Pastebin wants to save it as universal_fake_fullscreen.txt that will not work!
        Save it as universal_fake_fullscreen.ahk instead
        IMPORTANT: the extension has to be .ahk or it will not work
    • OR download it from my GoogleDrive ( https://drive.google.com/file/d/0B3cyltgNcOi-ZWkwSGp5OTFET0U/view?usp=sharing )
      No preview, though.
  3. If done correctly it will get the ahk icon. If it has not delete it and try again.
  4. eventually open it in notepad, Notepad++, or similar (as said in 2.1) and edit the icon or Hotkey to your liking as instructed in the file
  5. double click ahk file to run it.

Easy way:
Get the compiled version from https://drive.google.com/file/d/0B3cyltgNcOi-aHlFNFRSRkQ2akU/view?usp=sharing
No need for installing anything, just run it as it.
You'll lose the ability to change it or to check if the script does what I actually say it does, though.
Code (commented)
; (semicolon) is starting a comment. Menu, TRAY, NoStandard ;getting rid of all junk Menu, TRAY, Add, eXit , eXitn ;adding back in the possibility to exit it Menu, TRAY, Add, reload , reloadn ;adding back in the possibility to reload it Menu, TRAY, Add ; a bar Menu, TRAY, Add, Make Fullscreen (windows + s), fake ;manual triggering from the menu in case hotkey refuses to work ; next is the icon leave it as it is or change it to one to your likeing Menu, Tray , Icon, %windir%\system32\imageres.dll , 1 ; the %windir%\system32\imageres.dll is the file containing the icon ; , 1 is the number of the icon return fake: sleep 2000 ;2 seconds delay if called by menu gosub moveit ;go where you actually doing stuff return #s:: ;# = windows key , so it is windows + s ;you can change it to your liking; ! = Alt; ^ = Control; + = Shift moveit: SysGet , Mon, Monitor ;Get boundaries of monitor at current resolution MonSizeX:=abs(MonLeft-MonRight) ;Calculate monitor size (X) MonSizeY:=abs(MonTop-MonBottom) ;Calculate monitor size (Y) SysGet , offX, 45 ;Get window border thickness at top SysGet , offY, 15 ;Get window border thickness at sides WinGetTitle , WinName , A ; get name of the current active window, for doing stuff with it later WinMove , %WinName% , , -%offX%,-%offY% ; because sometimes the menu bar pops back if the window is moved WinSet , Style, -0xC00000, %WinName% ;removing borders WinMove , %WinName% , , 0,0 , %MonSizeX%,%MonSizeY% ; resizing to monitor size. Does often not work correctly with borders on WinSet , Style, -0xC00000, %WinName% ;removing borders, again. just in case. sleep 1000 ; wait a second, sometimes need because resizesing might interrupted return eXitn: ExitApp ;are we done? then go here return reloadn: reload ; doing it again, actually in for refreshing script just in case it gets out of whack return
Code (uncommented version)
Menu, TRAY, NoStandard Menu, TRAY, Add, eXit , eXitn Menu, TRAY, Add, reload , reloadn Menu, TRAY, Add Menu, TRAY, Add, Make Fullscreen (windows + s), fake Menu, Tray , Icon, %windir%\system32\imageres.dll , 1 return fake: sleep 2000 gosub moveit return #s:: moveit: SysGet , Mon, Monitor MonSizeX:=abs(MonLeft-MonRight) MonSizeY:=abs(MonTop-MonBottom) SysGet , offX, 45 SysGet , offY, 15 WinGetTitle , WinName , A WinMove , %WinName% , , -%offX%,-%offY% WinSet , Style, -0xC00000, %WinName% WinMove , %WinName% , , 0,0 , %MonSizeX%,%MonSizeY% WinSet , Style, -0xC00000, %WinName% sleep 1000 return eXitn: ExitApp return reloadn: reload return
Links
(I am not a fan of URL-shortners since you never know where they are going)
Copyright
http://creativecommons.org/licenses/by-sa/4.0/
This Guide and Universa_Fake_Fullscreen.ahk by Heiko Misselwitz aka. BiZZ Keryear is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.[creativecommons.org]