#NoTrayIcon #include <Array.au3> Dim $ctrlsize $ctrlsize=ControlGetPos("[CLASS]","","ReBarWindow321") ControlClick("[CLASS]","","ReBarWindow321","secondary",1,$ctrlsize[2],$ctrlsize[3]*0.5) MouseClick("primary",$ctrlsize[0]+$ctrlsize[2]+50,@DesktopHeight-215,1,1) Sleep(150) Send("d")
This is specific to check (or un-check) the 'Desktop' toolbar. To check/un-check other toolbars, you'll need to find out the underlined keyboard letter for that option. To add a toolbar, the letter is 'n' (instead of the 'd' in the code I posted).