Brilliant! Thanks John
!
On Sunday, 4 November 2018 at 19:06:22 UTC, Mark Moorhen wrote:
Another Windows challenge:
I'm trying to get the title of the active window even if it is
from an external application. This is what I've come up with so
far:
import std.stdio;
import core.sys.windows.windows;
extern (Windows)
Another Windows challenge:
I'm trying to get the title of the active window even if it is
from an external application. This is what I've come up with so
far:
import std.stdio;
import core.sys.windows.windows;
extern (Windows)
void main()
{
HWND foreground = GetForegroundWindow();