kcvinu

How to get control text without a ctrl ID

8 posts in this topic

Hi there,

I need to get text from another application.( A dictionary) But the text area of that program has no control ID. See this image of that program and it's window info.

post-89644-0-60358000-1423832015_thumb.p


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

So you are saying that when you select those text elements, nothing shows in the Visible Text or Hidden text tabs?

When this happens to me, i try to use Send commands like TAB, RIGHT, DOWN, etc and then combinations like CTRL and HOME or END, including SHIFT, followed by a copy to clipboard of the highlighted result.

That presumes, that you can actually highlight the respective text and use CTRL-C  .... i.e. Send("^c")

P.S. Or you might be lucky, and the Dictionary might have an SDK or command-line options.

Edited by TheSaint
1 person likes this

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

Looks like an embedded IE control. Have you tried accessing it with the _IE functions?

Share this post


Link to post
Share on other sites

Hi 

TheSaint,

Thank you. But i didn't get your point. What do you mean by SDK of dictionary ? Where i can get it and how can i work with it ?


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

Hi 

Danp2

Thank you for the reply. But i don't know how to work with IE functions. If there is any example scripts that work with such fuctions, please give me the link. 


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

If there is an SDK, it would be available from where the Dictionary has been provided, most likely.

Danp2 could well be onto something though, which could effectively be like using an SDK.

1 person likes this

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

Look in the UDF (last) section of the AutoIt Help file, plus there would be a lot of examples available from a search here at the forum.

1 person likes this

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

Hi 

TheSaint

Thanks. :)


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

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

  • Similar Content

    • SimTheNo1
      By SimTheNo1
      Hallo boyzz and girlzz if here are such,
      my name is Sim (Maxim Shubin in passport) and I have been among u for already very long time.
      But as in the most of cases I didn't say anything, even no thanks to makers for this software.
      A little long piece of crap moral:
      My main question is about program called VoipConnect which is the white label version of VOIP
      call and sms application by SIP.
      I am breaking my head for longer then a year already but something giant in computer code working
      I still miss. In particular Windows API Calls. So right now I have managed almost everything hooked up
      to autoit mastership except 1 very important part of the process - to read out text from main Window
      application Control which represents call flow information by text and sound.
      Here are few screenshots to clarify the exact point I am stuck on.
       automating the prograPp main window  on this ActiveCallListCtrl tab, during the call gets it's flow on reported   so it looks like when call just finished & is the problema - to get mO then only Custom1 text e.g. Call Ended  I also include zipped folder with voipconnect.exe program itself + EXE Explorer text report on examining this app.
      voipconnect
       
      And last, of course if u trust me just as much as I do completely in other words u can too download program yourself
      from the source on:
      VoipConnect.com
      And final very last detail to add: I kinda not much expect any help or reaction and that was I have been developing out
      myself that ugly piece of Feelings Oriented Binary Madness of functional interfacing between Back and Frond Started-Up 2 End Once Down points.....
      Oh my... never mind...
      That was me 
    • kcvinu
      By kcvinu
      Hi all,
      I would like to know how to read or get text from another applications like notepad, word etc.. I have used WinGetText(). But it gives the title and some other text. I need to get what the user types on word or notepad. Please help. Thanks in advance.
    • krishpun
      By krishpun
      I have a control with [ClassNN:TDBWPRichText1]

      I tried using the below, but it is not reading the text, please help

      $data=ControlGetText("Power of Appeals","Government Agency Information","[ClassNN:TDBWPRichText1]")
      MsgBox(1,1,$data)


      The details captured by info tool is below. The ID keeps changing each time I open the application

      >>>> Window <<<<
      Title: Power of Appeals
      Class: TMainForm
      Position: -9, -9
      Size: 1384, 752
      Style: 0x17CF0000
      ExStyle: 0x00010100
      Handle: 0x002203E4
      >>>> Control <<<<
      Class: TDBWPRichText
      Instance: 1
      ClassnameNN: TDBWPRichText1
      Name:
      Advanced (Class): [CLASS:TDBWPRichText; INSTANCE:1]
      ID: 789304
      Text:
      Position: 250, 150
      Size: 948, 442
      ControlClick Coords: 336, 132
      Style: 0x56A10000
      ExStyle: 0x00000000
      Handle: 0x000C0B38
      >>>> Mouse <<<<
      Position: 595, 343
      Cursor ID: 0
      Color: 0xFFFFFF
      >>>> StatusBar <<<<
      >>>> ToolsBar <<<<
      >>>> Visible Text <<<<
      Government Agency Information
      Alabama