pyromus

reading grid from program

8 posts in this topic

#1 ·  Posted (edited)

Dear Friends
 
I have been trying to get data from grid. i will use this data on my website. I can read handle of program. I can find handle of subwindow but I cant get data from subwindow. Can you give me idea for how i can get data from grid ? 
 
code that i can do until now is under.
 
 

#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <GuiMenu.au3>
#include <Array.au3>
#include <WinAPI.au3>
#include <WindowsConstants.au3>
#include <Crypt.au3>
#include <File.au3>
#include <WinAPIEx.au3>

Func winhandl($title = "")
    ; Retrieve a list of window handles.
    Local $aList = WinList();
    ; Loop through the array displaying only visable windows with a title.
    For $i = 1 To $aList[0][0]
        If StringInStr($aList[$i][0],$title) Then
            return ($aList[$i][1]);
        EndIf
    Next
EndFunc   ;==>Example


$h = winhandl("Rithmic Trader");
ConsoleWrite("h "&$h & @CRLF);

$pen = ControlGetHandle($h,"","[NAME:PRI_oGrid]");
ConsoleWrite("pen "&$pen & @CRLF);


$text = ControlGetText($pen,"","[NAME:PRI_oGrid]")
ConsoleWrite("output "&$text & @CRLF);
 

I have to get all data from rows and columns. I need help.

 

 
 
 
 picture of window
 
7030-8c9f8d21ab8b850f85976d77249a79d0.pn
 
 
 
 window info
7031-a736a5a930321cb50c4579b6a85476d2.pn

Edited by pyromus

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

i saw this project was with c# or c++ but i dont know this languages. i just know autoit. if it is possible, i would like to do with autoit

Edited by pyromus

Share this post


Link to post
Share on other sites

Doesn't the program offer a way to access the content of the grid (via COM or by exporting the data)?

Automating Windows Forms isn't easy (if possible at all) with AutoIt.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

what should i do ? 

Share this post


Link to post
Share on other sites

Is this a program written by a 3rd party? If yes, do you have a documentation for this product?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

yes sure. there is api of this program but it is written by c++. i just know autoit. isnt there simple way to code this ?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

You can go the ugly route of controlsend to copy data to your buffer, and split it by @Tab and @crlf (if you can select mutliple, or all, records).

Depends how the grid reacts.

API is the way to go.

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

You can go the ugly route of controlsend to copy data to your buffer, and split it by @Tab and @crlf (if you can select mutliple, or all, records).

Depends how the grid reacts.

API is the way to go.

 

jdelaney CTRL + A does not work on this grid in program, Copy does not work. just work on first cell of grid.

i dont know c++ for this reason i dont want to use api. do you have any idea ?

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