Jump to content

Get Text from cmd that is inside App.

Recommended Posts


I am working on Desktop App where inside there is cmd line(terminal) once I enter commands there, it gives information I need and the problem I have to get this information. Because it is not visible or hidden text! I tried a lot but nothing work, maybe smbd. has an idea how to get that text from the blue screen inside the App. 

>>>> Window <<<<
Title:  Workspace Network
Class:  SWT_Window0
Position:   648, 176
Size:   662, 610
Style:  0x96CF0000
ExStyle:    0x00100100
Handle: 0x00000000000E0262

>>>> Control <<<<
Class:  SunAwtCanvas
Instance:   1
ClassnameNN:    SunAwtCanvas1
Advanced (Class):   [CLASS:SunAwtCanvas; INSTANCE:1]
Position:   7, 99
Size:   497, 395
ControlClick Coords:    180, 38
Style:  0x56000000
ExStyle:    0x00000000
Handle: 0x00000000000B027A

>>>> Mouse <<<<
Position:   843, 364
Cursor ID:  0
Color:  0x000080

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
Click and Click

>>>> Hidden Text <<<<
Please wait...
Command Line

On screenshot, there is no text, but info above is from the window where a lot of text.

P.S. I am new to AutoIt and this is my first post, thank you for understanding if smth. not right!=)

Screen Shot 2019-12-27 at 1.47.31 PM.png

Link to post
Share on other sites

There is Select All in Edit menu, CTRL+C working, I tried this way, but could not click on the Edit menu btn and then to select all! This is also an option!

This is just App that installed on Desktop and to run it just click on exe file! (Not sure if I answered correctly to "Is there a logging file tool?")

Screen Shot 2019-12-27 at 4.01.10 PM.png

Link to post
Share on other sites

Try sending keys first :

Local $hWnd = WinActivate ("Place Window title or class here")
If Not $hWnd Then Exit MsgBox (0,"","Bad title or class")
WinWaitActive ($hWnd)
Send ("!e")
Sleep (500)
Send ("a")
Sleep (500)
Send ("^c")
Sleep (500)
MsgBox (0,"",ClipGet ())


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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...