that isn't switched to that computer, Windows won't load the
driver last used, and the screen resolution is wrong.
Trying to write a script that detects the monitor and sets the
proper screen resolution. Here's what I have:
Code: Select all
; Define hotkey combo: Ctrl-Shift-Alt-K
^+!k::
; Minimize All Windows
WinMinimizeAll
; Wait a bit
Sleep 200
; Right click in the upper left of the screen:
MouseClick, right, 1, 1
; Wait a bit:
Sleep, 5
; Windows 7 -----------------------------------
; Send the letter "c" to get sCreen Resolution:
Send, c
; Or send "down":
; Send, {Down 9}
; Wait a bit:
Sleep, 5
; Select by sending Enter:
; Send, {Enter}
; Wait a bit:
Sleep, 20
; Click the button --- DOESN'T WORK:
; ControlClick, Detect, Screen Resolution
; Send the letter "c" to get deteCt -- DOESN'T WORK:
; Send, c
; Click the button -- DOESN'T WORK:
ControlClick, x700 y180, Screen Resolution
proper driver or set the proper screen resolution?
Thanks for any light you can shed.