Here is the beginning of the script:
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a ; this is just my list - here you should list and put all the elements of your CD as it might not work with my list. This is the sickest part of the script - I found their ahk_class through launching
http://www.autohotke...nimizeToTrayMenu.ahk script, then hiding all elements using it, then rewriting all the classes from the script's tray (printscreen and OCR will do fine as well) here. I bet there should be an easier way, but I don't know it, and this might also cause you problems if you add new elements...
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 2b04c8
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a c0444
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 2603a0
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 130474
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 11035a
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 23064c
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 60d3e
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 160376
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 2503a6
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 66067c
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 24039c
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 33056a
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a ld0438
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 507cc
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 80cc2
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 40d52
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 40d4a
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 2907a8
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 3705f2
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 507b4
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a lf07ba
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 5079e
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 507ae
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 40d02
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 60778
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 40d22
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 14059a
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 507c4
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 21045e
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a e0ce4
GroupAdd, Dock, ahk_class WindowsForms10.Window.88.app.0.378734a 37052e
F13:: ;put your hotkey for launching the script here
if OnOff != 1
{
WinHide, ahk_group Dock
OnOff := 1
}
else
{
WinShow, ahk_group Dock
WinActivate, ahk_group Dock
OnOff := 0
}
return
#IfWinActive ahk_group Dock ;this part tells the dock to hide when left-mouse is clicked
LButton::
Click
Sleep, 50
if OnOff != 1
{
WinHide, ahk_group Dock
OnOff := 1
}
return
DRAWBACKS: This is the script itself, but you ALSO must turn off the option "auto hide CD when application is launched or folder is opened" - that is, we disable CD's auto-hiding mechanism which is independent of OUR ahk-script - so, if you lose your CD and it won't toggle, it could have auto-hidden itself... In case it's lost, just exit the CD and AHK and relaunch them. It also goes without saying that you need to have Autohotkey installed on your machine. And also note that you will have to exit the script if you are going to drag-drop something as otherwise it will be hidden by the AHK-script... Yes, I know it's SICK, but the redrawing issues are even worse.