I've set up a macro which opens Display properties using
D:\WINDOWS\system32\control.exe Desk.cpl, Display,3
Set up as Activate if running otherwise launch and open. I then send some keys to the window.
Sometimes the window is activated but often it isn't. It loads the Display properties window but the window just blinks 3 times and then becomes unactivated. I cannot track down why it works sometimes and other times not. Any ideas?