tags:

views:

21

answers:

1

Hey,

I am using the code described in - http://efreedom.com/Question/1-479548/Get-Active-Window-Text-Send-Text, and it has problems retrieving the text from facebook chat or from messenger chat or from textboxes inside websites - it returns an empty string.

Do you have any idea what's the problem and how can I overcome it?

Thanks,

Nevo.

A: 

This method works only for standard controls that windows implements. Home-brew ones doesn't have to obey this message. For example, all the controls in Mozilla browsers are not windows originated (probably due to the cross-platform nature of the browser). So probably the only browsers that uses standard controls is IE (I'm still not sure since the ie team could go its separate way for performance reasons)

As for universal method, I don't know whether there exists one. Opera, IE, FireFox, Chrome all use different code bases.

Maksee