Need way to get URI of Foreground Window.
I'm able to get the window title (using the following) but need a way to get the URI of the Foregound Window.
TCHAR wnd_title; HWND hwnd=GetForegroundWindow(); // get handle of currently active window GetWindowText(hwnd,wnd_title,sizeof(wnd_title)); QString retVal = QString::fromUtf16((ushort*)wnd_title); return retVal;
hi and welcome
@mrjj The URi associated with the Foreground Window. I'm getting the window title, but need a way to get the URi. Thanks.
what window are you talking about?