Jump to content
Sign in to follow this  
Nateiscool2

Grabbing Information From Old XP Program

Recommended Posts

Nateiscool2

So when i go to grab the information it show it in the GUI but when i use the autoit code to grab it there is no success. I need a fast solution.

Share this post


Link to post
Share on other sites
Melba23

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. :)


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Nateiscool2

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.

 

Share this post


Link to post
Share on other sites
JLogan3o13

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?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Nateiscool2

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
 

Share this post


Link to post
Share on other sites
JLogan3o13

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Nateiscool2

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.

Share this post


Link to post
Share on other sites
Nateiscool2

I figured out a quick fix i am using a ORC program and making it select the text and put it in a text file then figuring out how many times i send the down key.

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  

×