Edgeclose() Func Edgeclose() ; Assumes Microsoft Edge is already running as a process before this code is executed ; Assumes Edge tab close prompt has been turned off in registry via: ;[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main] ;"AskToCloseAllTabs"=dword:00000000 WinActivate("Microsoft Edge", "") WinClose("Microsoft Edge", "") EndFunc