Advertisement
BourbonCrow

Path of Exile (PoE) Borderless Stretched (Using Hotkey)

Feb 28th, 2025 (edited)
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Requires AutoHotkey v2.0
  2. #SingleInstance force
  3. SW := A_ScreenWidth
  4. SH := A_ScreenHeight
  5. AutoH := SH/1.35 ; 1.35 is the zoom modifiar. If you get black bars on your game's sides, put it lower start at 1.30, save & retest till satisfied
  6. ;### Do not edit above unless you know what you are doing########################################
  7. ;################################################################################################
  8.  
  9. ; AutoHotkey script to make Path of Exile borderless windowed
  10.  
  11. ;###Settings#####################################################################################
  12.  
  13. ; Hotkey to trigger the resizing (you can change F1 to any key you prefer)
  14. Hotkey "F1", StretchedNoBoarderWindow
  15.  
  16. ; Set the desired width and height for the borderless window
  17. DesiredWidth := SW ; Change to desirerd Width of the gaming window, Accepted Values: Value in Pixels, SW for Same Width as monitor
  18. DesiredHeight := AutoH ; Change to desirerd Hight of the gaming window, Accepted Values: Value in Pixels, SH for Same Height as monitor, AutoH for Automatic stretched windowed
  19.  
  20. ; Set desired window location
  21. X := (SW - DesiredWidth)/2 ; Set the desirerd X location of the gaming window, Accepted Values: Value in Pixels 0 being all way left, (SW - DesiredWidth)/2 for automatic center
  22. Y := 0 ; Set the desirerd Y location of the gaming window, Accepted Values: Value in Pixels 0 being all way top, (SH - DesiredHeight)/2 for automatic center
  23.  
  24. ; Game name, change as necessary
  25. GameTitle := "Path of Exile"
  26.  
  27. ;#############################################################################################
  28.  
  29. StretchedNoBoarderWindow(ThisHotkey){
  30.     ; Check if the game window is open
  31.     if WinExist(GameTitle){
  32.         ; Activate the game window found by WinExist
  33.         WinActivate
  34.  
  35.         ; Remove the borders and title bar
  36.         ; 0xC40000 = WS_BORDER (0x800000) + WS_DLGFRAME (0x400000) + WS_SIZEBOX aka WS_THICKFRAME (0x040000)
  37.         WinSetStyle("-0xC40000", GameTitle)
  38.  
  39.         ; Resize the window to borderless dimensions
  40.         WinMove X, Y, DesiredWidth, DesiredHeight, GameTitle
  41.         ExitApp
  42.     }
  43.     else{
  44.         MsgBox "Please launch game first.", "Game not found"
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement