'AHK for Save Dialog: Navigate to desktop and jump to field filename

I was using this Autohotkey script for a while:

; Windows Explorer Save Dialog
; hitting CTRL D goes to address bar, jumps to full desktop path, then goes to filename for the user to override
#IfWinActive ahk_class #32770
    ^D::
        Send !D
        String := "%UserProfile%\Desktop"
        SendRaw %String%
        Send {ENTER}
        Send !D
    return
#IfWinActive

It stopped working. Probably a Windows 10 update changed something in the file save dialog.

Now using the script above (hitting CTRL+D) still opens the desktop location, but goes to the top right "Desktop Search" (instead of the filename).

Also changing the last Send !D to Send !N did not help.

Also Send {TAB} does not help, Windows ignores it. The focus seems to be stuck to the Search field.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source