How do you programatically raise the VisualStudio environment from python?
You get a handle to Visual Studio as follows:
import win32com.client
>>> b = win32com.client.Dispatch('VisualStudio.DTE')
but what method of b needs to be called to make VisualStudio environment focused and raised-to-top?
First you can get Visual Studio’s main window:
Then you can get main window’s handle (HWND):
Then using win32gui module you can move this window on top: