View Single Post
  #3  
Old 09-07-2020, 12:51 PM
froomee froomee is offline
Large Bat


Join Date: Feb 2020
Posts: 11
Default

FWIW here's my Autohotkey script that I've been using in lieu of WinEQ2 or Borderless Gaming.

Running this with WineD3D, it's kinda flashy when alt tabbing in and out, but it's othewise fine, and has been my go-to fullscreen script since I didn't feel like signing up for an account to get WinEQ2 [You must be logged in to view images. Log in or Register.]

Upon Ctrl and =, this will move the EQ window to be borderless windowed in a 1440p main screen(which can be adjusted to whatever screen and screen-size you want), and also lock the mouse inside that window until you alt+tab.

However, you're gonna need to give the autohotkey exe admin permissions if running with XP compatbility mode. [You must be logged in to view images. Log in or Register.]

Code:
#IfWinActive, ahk_class _EverQuestwndclass
$^=::
WinSet, Style, -0xC00000,a
winmove, ahk_class _EverQuestwndclass, , 0, 0 , 2560, 1440 
clipcursor(winexist("ahk_class _EverQuestwndclass") ? winexist("a") : "")
return
#IfWinActive
 
clipcursor(hwnd := "") {
    static unclip := DllCall("GetCursor")
    if hwnd {
        ;WinHide ahk_class _EverQuestwndclass
        WinGetPos, rx, ry, rw, rh, ahk_id %hwnd%
        WinGet style, style, ahk_id %hwnd%
        if style & 0xc00000 {   ; bordered window, use client area
            SysGet cap, 4       ; caption height
            SysGet bw, 32       ; border width
            SysGet bh, 33       ; border height
            rx += bw, ry += cap, rw -= (bh * 2), rh -= (cap + bh)
        }
        VarSetCapacity(rclip, 16)
        NumPut(rx, &rclip+0)
        NumPut(ry, &rclip+4)
        NumPut(rw + rx, &rclip+8)
        NumPut(rh + ry, &rclip+12)
    } else
        WinShow ahk_class _EverQuestwndclass
    return DllCall("ClipCursor", Ptr, hwnd ? &rclip : &unclip)
}
__________________
Iolth - 55 DE Shadow Knight
Glov- 58 DE Cleric
Reply With Quote