Skip to content

Instantly share code, notes, and snippets.

@tillig
Created January 7, 2017 21:15
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 tillig/85739281b7aac7b392270484bc44cb12 to your computer and use it in GitHub Desktop.
Save tillig/85739281b7aac7b392270484bc44cb12 to your computer and use it in GitHub Desktop.
AutoIt3 script for setting best appearance on Windows Server 2008 R2
#RequireAdmin
; AutoIt3 script for setting best appearance on Win2K8R2
; Used when drop shadows on icons, etc. disappear for unknown reason.
ShellExecute("sysdm.cpl")
WinWaitActive("System Properties")
ControlCommand("System Properties", "", 12320, "TabRight", "")
;For some reason it used to be two tabs right, now it's just one.
;ControlCommand("System Properties", "", 12320, "TabRight", "")
Send("!s")
WinWaitActive("Performance Options")
Send("!p!a")
WinWaitActive("Performance Options")
Send("!b{ENTER}")
WinActivate("System Properties")
ControlClick("System Properties", "", 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment