Skip to content

Instantly share code, notes, and snippets.

@acarapetis
Last active July 11, 2024 01:13
Show Gist options
  • Save acarapetis/f9e39dcf503b5041af1132cb24f4a73d to your computer and use it in GitHub Desktop.
Save acarapetis/f9e39dcf503b5041af1132cb24f4a73d to your computer and use it in GitHub Desktop.
Span VNC viewer across two monitors with AutoHotkey
if WinExist("ahk_class VNCviewer")
; Remove titlebar:
WinSet, Style, -0xC40000, ahk_exe vncviewer.exe
; This assumes two 1920x1200 monitors side by side, the leftmost
; of which is the primary monitor (so that 0,0 is its top left corner):
WinMove, , , 0, 0, 3840, 1200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment