Sign in to follow this  
Followers 0
AutoItNooby

Text capture from Reflection or CMD shell

5 posts in this topic

Hello everyone.

I have a situation where I need to capture text from a Reflection terminal.

For thos that are unfamiliar with Reflection it is a tool that lets you log onto a UNIX box from your windows box. Like telnet but you may launch programs that can spawn new windows unlike telnet.

The problem I am facing is that the window itself has text similar to:

#ls /opt/nodir

/opt/nodir not found

#

but the AutoIt v3 Active Window Info tool shows none of the text within the Reflection window.

This same effect happens when you open a CMD window and try to find text within that window.

For example:

$text = WinGetText("My reflection window title", "")

MsgBox(0, "Text read was:", $text)

will result in no text being put into $text.

Has anyone been successful with capturing text in this kind of situation?

Share this post


Link to post
Share on other sites



look at the StdOutRead functions :)

Share this post


Link to post
Share on other sites

Can you control the menus in Reflections? If so, then perhaps another way is to instead turn on the capture function of Reflection.

Kirk

Share this post


Link to post
Share on other sites

Can you control the menus in Reflections? If so, then perhaps another way is to instead turn on the capture function of Reflection.

Kirk

I tried this and it works with a glitch, the "capture" function is a trace type of capture in Reflection. You can replay it but it is only an image, has no effect on the computer.

Share this post


Link to post
Share on other sites

look at the StdOutRead functions :)

I tried using the StdOutRead functions without success.

It seems that the output console device, when using Reflection, is not the one you actually see the output in.

I asked a friend at work and he mentioned that it could possibly be something with how reflections handles its protocols when addressing the console device.

Im not to up on that so cant say much.

If you or anyone has had even a marginal success using AutoIt with the output from a Reflections session please supply more information.

Thanks in advance

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0