Jump to content

Grabbing Information From Old XP Program


 Share

Recommended Posts

  • Moderators

Nateiscool2,

Welcome to the AutoIt forum. :)

You will need to give us a bit more information if you expect any help. What is the XP app you are trying to read? What details (window, control, etc) does the AutoIt Window Info tool (I assume that is what you mean by "it show it in the GUI") give you about it? What code have you used to try and read it? :huh:

If you can give us that information we might well be able to offer some advice. But although you say you "need a fast solution" please bear in mind that we are all volunteers here and you will have to wait patiently for someone to take the time to work on your problem. ;)

M23

P.S. When you post code please use Code tags - see here how to do it. :)

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

The program i am trying to read is called DBA manufaturing. I am trying to read a frame that has values you can select via down arrow it's a list, but when i use the tool to read it. The text isn't showing up so i can't write code that will automate it. It shows a Class TWindow Instance 4. The visible text isn't showing up with the text on the pane. I have tried Controlgettext, Controlgetfocus. The program has been good up til i have come to this window where i can't seem to get the visible text.

 

Link to comment
Share on other sites

  • Moderators

Still digging for a decent amount of information - how about posting what the Window Info Tool is showing you, as well as a screenshot of the area of the app window you're trying to interact with?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

DBA_AP.jpg

This is the windows i am trying to grab.

Autoit_Info.jpg

Here is the windows when i try to use the crosshair.

Here is the summary:

>>>> Window <<<<
Title:    SAMPLE EMC                - 9/19/2013
Class:    TForm13
Position:    0, 264
Size:    674, 506
Style:    0x16CF0000
ExStyle:    0x00010100
Handle:    0x003F0A4C

>>>> Control <<<<
Class:    TWindow
Instance:    4
ClassnameNN:    TWindow4
Name:    
Advanced (Class):    [CLASS:TWindow; INSTANCE:4]
ID:    723560
Text:    
Position:    5, 68
Size:    640, 360
ControlClick Coords:    286, 118
Style:    0x56000000
ExStyle:    0x00010000
Handle:    0x000B0A68

>>>> Mouse <<<<
Position:    299, 500
Cursor ID:    0
Color:    0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
AR
CM
CS
SA
RM
SR
SO
Sales
 AR-C  Record Payments for MITSUBISHI ELECTRIC AUTOMATION  - ISTS Enhan         
AR Transactions
Done
Exit
 

Link to comment
Share on other sites

  • Moderators

The information you're showing is from the main window (SAMPLE EMC - 9/19/2013). Do you get anything different from the Window Info Tool if you hover over the sub-window (AR-C Record Payments for MITSUBISHI ELECTRIC AUTOMATION - ISTS Enhan        )? It is seeing it, as evidenced by the Visible Text; just curious if it is seen as a separate window.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

When i hover over the title bar i get:

>>>> Window <<<<
Title:    SAMPLE EMC                - 9/19/2013
Class:    TForm13
Position:    49, 44
Size:    674, 506
Style:    0x16CF0000
ExStyle:    0x00010100
Handle:    0x003F0A4C

>>>> Control <<<<
Class:    TForm2
Instance:    1
ClassnameNN:    TForm21
Name:    
Advanced (Class):    [CLASS:TForm2; INSTANCE:1]
ID:    65280
Text:     AR-C  Record Payments for MITSUBISHI ELECTRIC AUTOMATION  - ISTS Enhan         
Position:    2, 43
Size:    646, 388
ControlClick Coords:    504, 18
Style:    0x56CA0000
ExStyle:    0x00000140
Handle:    0x002B0A44

>>>> Mouse <<<<
Position:    563, 155
Cursor ID:    0
Color:    0xD2E0ED

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
AR
CM
CS
SA
RM
SR
SO
Sales
 AR-C  Record Payments for MITSUBISHI ELECTRIC AUTOMATION  - ISTS Enhan         
AR Transactions
Done

This is a diffrent controlt then if i try to hover over the middle of the program. Either way i don't get the text.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...