Skip to content

Instantly share code, notes, and snippets.

@Geobert
Last active April 12, 2018 01:44
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Geobert/c00859b285e085792c78 to your computer and use it in GitHub Desktop.
Save Geobert/c00859b285e085792c78 to your computer and use it in GitHub Desktop.
; puth this file somewhere and create a shortuct in C:\Users\<User>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\
; so it starts with Windows
#singleinstance
#NoTrayIcon
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Loop {
SetTitleMatchMode, 3
WinWait, Lightroom - Secondary Display
;WinRestore
WinMove, 3840, 100 ; adjust this coordinates to suit the screen you want the preview to be
WinMaximize
WinWaitClose
}
@rlhess
Copy link

rlhess commented Apr 21, 2017

Thank you for this! I just got a new computer with more display ports than I knew what to do with, but I set up a third monitor 1024x768 to the far right to run the audio metering when I'm doing audio work and found out that my Lightroom secondary screen only wanted to go to that monitor instead of my right 1920x1080 (I run the main screen on the left 1920x1080). Your script saved my 1024x768 monitor. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment