Skip to content

Instantly share code, notes, and snippets.

@llinfeng
Last active July 31, 2022 14:39
Embed
What would you like to do?
Force full-screen refresh on e-ink monitors
#SingleInstance, force ; Allow only one instance of this script to be running.
#Persistent ; To stop the script from exiting.
; Here, press F1 to trigger the black/white flash
F1::
; Source: https://superuser.com/questions/662264/i-would-like-to-make-the-screen-go-black-every-8-seconds-how
Gui, Color, 000000
Gui, Show, x-5000 y-20 w8000 h8000
sleep 333
Gui, Color, FFFFFF
Gui, Show, x-5000 y-20 w8000 h8000
sleep 333
Gui, hide
return
@llinfeng
Copy link
Author

@llinfeng
Copy link
Author

Credits: user lililywww.

@llinfeng
Copy link
Author

Related but Dasung specific ahk script to control contrast/light/display-mode: https://gitee.com/CastleWei/dasung-helper/blob/master/dasung_ahk_release.ahk

@llinfeng
Copy link
Author

Additional note on the display-time of black/white image: in the proof-of-concept script, the display-time is set to be 333ms. Though,

  • When using the e-ink monitor locally, 150ms is sufficient ;
  • When connecting to a remote Windows machine through RDP, 300ms is good enough.

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