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[256]; 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
what URi? -
@mrjj The URi associated with the Foreground Window. I'm getting the window title, but need a way to get the URi. Thanks.
-
@mrjj The URi associated with the Foreground Window. I'm getting the window title, but need a way to get the URi. Thanks.
@manncleary
what window are you talking about?