Create Window larger than desktop (display resolution)

后端 未结 9 2112
旧时难觅i
旧时难觅i 2021-01-12 03:47

I need to resize a window larger than screen resolution or size of desktop, programmatically & preferably also manually.

Since MS-Windows XP/Vista disallows a wi

9条回答
  •  [愿得一人]
    2021-01-12 04:43

    I needed to push part of a window off the top of the screen and I was fnally able to do it using this AutoHotKey script:

    SetTitleMatchMode, 2
    WinTitle := "Visual Studio Code"
    
    ; --- WinMove version
    
    ; WinMove, %WinTitle%, , 0, -64, 1280, 1504
    
    ; -- DLL version
    
    WinGet, id, , %WinTitle%
    Result := DllCall("SetWindowPos", "uint", id, "uint", HWND_TOP, "Int", 0, "Int", -64, "Int", 1280, "Int", 1504, "UInt", 0x400)
    

    (I wanted to maximize the editor area of VSCode by completely hiding the title bar and the tabs section, that are not configurable in the program itself.)

提交回复
热议问题