Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get the text from windows title bars

Status
Not open for further replies.

milarepa

Programmer
Oct 6, 2008
2
I am trying to develop a task switcher under Ubuntu. Is there a function whereas I could retrieve the title bar text of all current applications.

Thank you
 
I assumme you are using Tk.

Code:
$mw = MainWindow->new(-title=>"MY TITLE");
my $title =$mw->title();


dmazzini
GSM/UMTS System and Telecomm Consultant

 
He wants to obtain the title of other windows running on the system, so if Pidgin, Tek-Tips in Firefox, and XChat are all running, his program should be able to get the titles of all those windows.

Look at X11::GUITest, - I don't think it's as mature as Win32::GUITest (which does the same things on Windows) but that's prolly pretty close (if not that, try the other X11 modules).

-------------
Cuvou.com | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top