getting Title from chrome

Zexor

Well-known member
Joined
Nov 28, 2008
Messages
520
Programming Experience
3-5
I am trying to get the window title text from a chrome window for youtube site. This work if its in a window. But if i play the video fullscreen, all the title are blanks. The taskbar still show a window with the correct title but with an extra blank text window. Is there a way to get the title from the original window when the video is in full screen?

VB.NET:
dim myProcess as Process() = Process.GetProcessesByName("chrome")
For Each pro As Process In myProcess
    Dim winTitle As String = pro.MainWindowTitle
Next
 
You can enumerate all windows of the process and determine the main window (the main window usually has WS_CAPTION, WS_SYSMENU and other special styles). Then call GetWindowText() for that window to get its title.
 
You can enumerate all windows of the process and determine the main window (the main window usually has WS_CAPTION, WS_SYSMENU and other special styles). Then call GetWindowText() for that window to get its title.
That is what Process class and its MainWindowTitle property already does, and that does not do the job in this case anyway.
 
Back
Top