Autohotkey toggle Zoom-Tool On/Off

Hi I used Keyboard Maestro with Nuendo 11 to toggle Zoom-Tool On/Off, and Im struggling a bit to get this working in ahk under win10. Im a complete ahk noob but managed to come up with this little code snippet:

#singleInstance force

#IfWinActive ahk_class Nuendo11

GetKeyState, state, y
if (state = “D”)
send {0}


Hope you guys can help me out here to find a solution, since I really like moving around complex projects quickly with this zoom-tool toggle function.

Nobody using ahk with Nuendo??