[Gtk-sharp-list] P/invoke to get window text
Seattlewonderboy at hotmail.com
Mon Aug 17 09:42:02 EDT 2009
I'm working on a GUI test automation project and I need to be able to get the
caption or titlebar text of a window that I did not create, and indeed may
not even be a window created by a managed code framework. On the Windows
platform, I'd call the GetWindowText API. However, that API obviously
doesn't exist on other operating systems. Absent a platform-independent way
to accomplish this (and searches have been remarkably fruitless to find
one), is there anything in the gtk# framework that might help me? I've
thought about possibly using p/invoke to call the X11 API directly, but that
seems awfully low-level. Any suggestions?
View this message in context: http://www.nabble.com/P-invoke-to-get-window-text-tp25006934p25006934.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list