Advertisement
BourbonCrow

Path of Exile (PoE) Borderless Stretched (Auto with game launch)

Mar 1st, 2025 (edited)
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Requires AutoHotkey v2.0
  2. #SingleInstance force
  3. ; AutoHotkey script to make Path of Exile borderless windowed
  4.  
  5. ;###Settings#####################################################################################
  6.  
  7. ; Set the desired width and height for the borderless window
  8. DesiredWidth := A_ScreenWidth ; Change to desirerd width of gaming window, you can use A_ScreenWidth to make it same as monitor
  9. DesiredHeight := 1100 ; Change to desirerd height of gaming window, you can use A_ScreenHeight to make it same as monitor
  10. ; Game name, change as necessary
  11. GameTitle := "Path of Exile"
  12.  
  13. ; Game path, chance as necessary
  14. GamePath := "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Grinding Gear Games\Path of Exile"
  15.  
  16. ;###Advanced Settings############################################################################
  17.  
  18. ;You should not need to edit these.. they are incase your running on a toaster
  19.  
  20.  
  21. ; How long the script waits for game to start at maximum before giving up (Seconds)
  22. WinWaitTimeout := 20
  23.  
  24. ; How long until the resolution is changed and borders removed after window is detected (Milliseconds)
  25. DelayBeforeTask := 4000
  26.  
  27. ;#############################################################################################
  28.  
  29. ; Launchers the game
  30. run GamePath
  31. ; Check if the game window is open
  32. if WinWait(GameTitle, , WinWaitTimeout){
  33.     if WinExist(GameTitle){
  34.         sleep DelayBeforeTask
  35.  
  36.         ; Remove the borders and title bar
  37.         ; 0xC40000 = WS_BORDER (0x800000) + WS_DLGFRAME (0x400000) + WS_SIZEBOX aka WS_THICKFRAME (0x040000)
  38.         WinSetStyle("-0xC40000", GameTitle)
  39.  
  40.         ; Resize the window to borderless dimensions
  41.         WinMove 0, 0, DesiredWidth, DesiredHeight, GameTitle
  42.         ExitApp
  43.     }
  44. else{
  45.     MsgBox "Make sure path to game in script is accurate.", "WinWait Timed Out"
  46.     }
  47. }
  48. return
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement