Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How can I access to objects in a third-party application?

How can I access to objects in a third-party application?

Scheduled Pinned Locked Moved C#
questioncsstutorial
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    m samar
    wrote on last edited by
    #1

    Hi every one. there is a application that receives data from BTS stations and shows them as log in a grid... In order to analyze the log,I need to access to the grid.I don't know how to access and read that? in other words how can I read data shown in a third party application?

    L 1 Reply Last reply
    0
    • M m samar

      Hi every one. there is a application that receives data from BTS stations and shows them as log in a grid... In order to analyze the log,I need to access to the grid.I don't know how to access and read that? in other words how can I read data shown in a third party application?

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, you can interact with GUI parts in any app using Win32 calls such as EnumWindows, FindWindow, SendMessage and GetWindowText; it takes some knowledge of how Windows works and a lot of P/Invoke. If you haven't done this yet, you'll need to learn several new things. Use Google and look for some examples here on CodeProject. My TrayIconBuster article does something related, although the goals are different. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


      M 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, you can interact with GUI parts in any app using Win32 calls such as EnumWindows, FindWindow, SendMessage and GetWindowText; it takes some knowledge of how Windows works and a lot of P/Invoke. If you haven't done this yet, you'll need to learn several new things. Use Google and look for some examples here on CodeProject. My TrayIconBuster article does something related, although the goals are different. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


        M Offline
        M Offline
        m samar
        wrote on last edited by
        #3

        Thanks for your reply I searched user32.dll API Reference for C#,the best I found is "list of some user32.dll functions.With findWindow(...) the window could be found but how access to it's objects(ex. grid,textbox).which function could help me? thanks in advance

        L 1 Reply Last reply
        0
        • M m samar

          Thanks for your reply I searched user32.dll API Reference for C#,the best I found is "list of some user32.dll functions.With findWindow(...) the window could be found but how access to it's objects(ex. grid,textbox).which function could help me? thanks in advance

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          All Controls are Windows themselves. And you will have to study, you can't solve your problem by asking 100 questions here. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


          M 1 Reply Last reply
          0
          • L Luc Pattyn

            All Controls are Windows themselves. And you will have to study, you can't solve your problem by asking 100 questions here. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


            M Offline
            M Offline
            m samar
            wrote on last edited by
            #5

            ok....hmmm ... Could you please [give|refer] me some references for study? Thank you. :sigh:

            L 1 Reply Last reply
            0
            • M m samar

              ok....hmmm ... Could you please [give|refer] me some references for study? Thank you. :sigh:

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              I think perhaps this question is beyond the scope of the forum you have posted into. In order to access the information in the third party application you need to know how that application stores the data, including the structure of the windows used to display it. By enumerating all the windows belonging to the application you may be able to get to the simple text displays, but that will not guarantee you can understand the data as it is presented. My suspicion is that you need to spend a lot of time learning the fudamentals of MS Windows before you can attempt to solve this problem. I would suggest reading anything (and everything) written by people like Mark Russinovich and Charles Petzold for a start. good luck.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups