kcvinu

How to read or get text from another applications

8 posts in this topic

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.


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



ControlGetText

1 person likes this

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Thank you 

SmOke_N. Let me try

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 SmOke_N,

I have no control ID for word's text typing area. See this image

post-89644-0-52896400-1422255622_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

Try using the Word UDF in the help file for Word.

1 person likes this

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Hi SmOke_N, I am sorry, but no way. There nothing related to get text from word in Word UDF. 


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 SmOke_N, I am sorry, but no way. There nothing related to get text from word in Word UDF. 

Why are you apologizing to me?

If someone with 10 years of experience told me what to use and the answer didn't just jump out at me, I'd do some research.

You seem to want things just handed to you... I say this to you sir... SEARCH


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Why i am apologize you beacause, you helped me but i can't get the advantage from 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

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

    • kcvinu
      By kcvinu
      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.

    • 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