I use this macro 20-30 times a day and it always works for me except when I go into the menus manually first which of course screws it up because the menus remember where you are:
; Request docking
^d::
setkeydelay, 50, 50
send, 1ee s qq1
exit
EDIT: I wonder if it's the class you're specifying? Those classes can relate to specific windows and not just the whole application which may be your issue. I just do:
#IfWinActive, Elite - Dangerous
The class I use is what AHK reports ED's window class to be - first I tried with just how you do it but it didn't work at all (not even for chat window).
I've not tried running AHK with admin privileges though, so there's that avenue to check still... I rarely give anything admin privileges if I can avoid doing so.
Last edited: