When I execute this piece of code (anywhere)
Code: Select all
Send {RButton Up}
Code: Select all
Click, Up, Right
So my computer somehow disables monitors.... when it shouldn't.
How to fix that one?
Code: Select all
Send {RButton Up}
Code: Select all
Click, Up, Right
Code: Select all
Send {RButton Down}
Send {RButton Up}
Code: Select all
Click, Down, Right
Click, Up, Right
Code: Select all
F1::
Send {RButton up}
; <--- forgot the "return"!
#o:: ; Win+O hotkey that turns off the monitor.
Sleep 1000 ; Give user a chance to release keys (in case their release would wake up the monitor again).
; Turn Monitor Off:
SendMessage, 0x112, 0xF170, 2,, Program Manager ; 0x112 is WM_SYSCOMMAND, 0xF170 is SC_MONITORPOWER.
; Note for the above: Use -1 in place of 2 to turn the monitor on.
; Use 1 in place of 2 to activate the monitor's low-power mode.
return
Users browsing this forum: No registered users and 54 guests