Discussion:
Any possibility to check the contains of a window
(too old to reply)
Dudule
2018-04-03 16:50:01 UTC
Permalink
Hello,
I would like to know if there is any possibility (using Wscript), to
check/verify that an
application windows (with the focus), displays some string..
If yes, how...???
Thanks for any answer
JJ
2018-04-03 19:47:34 UTC
Permalink
Post by Dudule
Hello,
I would like to know if there is any possibility (using Wscript), to
check/verify that an
application windows (with the focus), displays some string..
If yes, how...???
Thanks for any answer
No. WScript alone doesn't have that feature.

With Windows built in tools, the only thing you can get is the application
window titles - using TASKLIST program.
Mayayana
2018-04-03 22:49:27 UTC
Permalink
"Dudule" <***@niconnu.com> wrote

| I would like to know if there is any possibility (using Wscript), to
| check/verify that an
| application windows (with the focus), displays some string..
|

That's a tough one in any situation. And it
won't be available at all unless it's written by
the system. In other words, if a program
uses a system textbox and puts text into it,
you might be able to get that. If a program
just writes directly to their own window then
it won't be findable.

Your best bet is Active Accessibility. If you
want a component, try this:

https://www.jsware.net/jsware/compfiles.php5#jsshl

Take the EXE version for 64-bit.

I don't think script can use AA by itself, directly.
Even with a component it will be difficult. That's
why screen readers for the blind are so expensive.
They have to use various hacks to tell blind people
what's onscreen and there's no one way to do it.
AA itself is only a bundle of hacks that Microsoft
put together to satisfy accessibility requests.

Continue reading on narkive:
Loading...