Skip to content

Instantly share code, notes, and snippets.

@tmplinshi
Last active July 2, 2017 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmplinshi/70a8f7879d94b20a42a9d94ca12c1a82 to your computer and use it in GitHub Desktop.
Save tmplinshi/70a8f7879d94b20a42a9d94ca12c1a82 to your computer and use it in GitHub Desktop.
DisableFadeEffect() {
; SPI_GETCLIENTAREAANIMATION = 0x1042
DllCall("SystemParametersInfo", "UInt", 0x1042, "UInt", 0, "UInt*", isEnabled, "UInt", 0)
if isEnabled {
; SPI_SETCLIENTAREAANIMATION = 0x1043
DllCall("SystemParametersInfo", "UInt", 0x1043, "UInt", 0, "UInt", 0, "UInt", 0)
Progress, 10:P100 Hide
Progress, 10:Off
DllCall("SystemParametersInfo", "UInt", 0x1043, "UInt", 0, "UInt", 1, "UInt", 0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment