It seems to be the function to use:
[quote:1p1rcuzf]GetConsoleWindow function
Retrieves the window handle used by the console associated with the calling process.[/quote:1p1rcuzf]
[url:1p1rcuzf]https://msdn.microsoft.com/en-us/library/ms683175.aspx[/url:1p1rcuzf]
once we have such handle, we can call SetFocus()
↧