in order to close the StartMenu of the Windows, I successfully did that using 2 SendHotkey activities:
- first, will just send the “Win” key to the Desktop (at the selector you need to use the desktop)
- second, send the same “Win” key but without anything on the selector (leave empty)
Set both of them to ContinueOnError=true in order to deal with both situations (already opened StartMenu, closed StartMenu) without having an exception if the menu isn’t open.
Set Timeout=1000 (1s) for both in order to have them responding without waiting a very long time.
This was tested on WinServer2019 and Win10Pro successfully.
I hope it will help you