robertwahler/win32-autogui — pull request #5 by ebertech (2012-05-25 19:20:53+00:00)
Title: switch to using GetWindowText

Hi

I've run into an issue where WM_GETTEXT would just hang everything. After some digging I found:

http://blogs.msdn.com/b/oldnewthing/archive/2003/08/21/54675.aspx

Switching out to GetWindowText fixed my instance of the freezing issue. It's not 100% guaranteed to work (as noted in the link above), but I think it's "safer."