Wow.... Good find JadeDragon!
Sending R keystroke to audacity from game
Yeah, so none of those things are gonna work. Well it seems the click code works that Robert gave me so thanks. Sometimes it minimizes, sometime it doesn't. This is what I used in the end.
F9:: IfWinExist, ahk_class wxWindowClassNR Toggle := !Toggle ControlClick,wxWindowClassNR9, ahk_class wxWindowClassNR IF NOT Toggle ControlClick,wxWindowClassNR6, ahk_class wxWindowClassNR Return
That works fine for me.