Unusually sometimes (every 10 times) it works. And then again not, I have also played with the Slepptimes of this it seems to sen independently.
To check it I used the shortcut for fullscreen before entering it. Also this is only executed occasionally.
$url = "https://google.de"
;Edge starten
Run(@ComSpec & " /c start microsoft-edge:" & $url ,"",@SW_HIDE)
;Edge Vollbild
Sleep(2000)
Send("{ALTDOWN}{SPACE}{x}{ALTUP}")
;Beim Edge schließen wir noch die alten Fenster
WinActivate("[REGEXPTITLE:.*Microsoft Edge$]")
Sleep(1000)
Send('^!{f4}')