Skip to content

Instantly share code, notes, and snippets.

@tmplinshi
Created December 15, 2022 19:55
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/66e5f2e8ae1ea7d6ec28f91c0f217fb5 to your computer and use it in GitHub Desktop.
Save tmplinshi/66e5f2e8ae1ea7d6ec28f91c0f217fb5 to your computer and use it in GitHub Desktop.
SetScreenReaderActiveStatus(isActive)
{
SPI_SETSCREENREADER := 0x0047
SPIF_SENDCHANGE := 0x0002
return DllCall( "SystemParametersInfo"
, "uint", SPI_SETSCREENREADER
, "uint", !!isActive
, "ptr", 0
, "uint", SPIF_SENDCHANGE )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment