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
  1. Home
  2. General Programming
  3. C#
  4. How to get the Left,Top and Height,Width of perticular region within an running application?

How to get the Left,Top and Height,Width of perticular region within an running application?

Scheduled Pinned Locked Moved C#
questioncsharptutorial
3 Posts 2 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.
  • R Offline
    R Offline
    ritz1234
    wrote on last edited by
    #1

    Hello Dear Friends, I've an application which shows the video from the webcam. I want to create a C# application which can capture the part of the first application that shows the video in it. Can anybody suggest the way to do this. One way to do this is as described below 1) From the first running application that shows the video in it we can get handle of the window and from that window handle we can get the left,top, right,bottom of the area of the application that shows the video. I've HWND of the first running application but how do I get the left,top,height,width of the area which shows the video. Is there any other way to achieve this or suggestion for this. Thanks in Advance,

    ritz1234

    F 1 Reply Last reply
    0
    • R ritz1234

      Hello Dear Friends, I've an application which shows the video from the webcam. I want to create a C# application which can capture the part of the first application that shows the video in it. Can anybody suggest the way to do this. One way to do this is as described below 1) From the first running application that shows the video in it we can get handle of the window and from that window handle we can get the left,top, right,bottom of the area of the application that shows the video. I've HWND of the first running application but how do I get the left,top,height,width of the area which shows the video. Is there any other way to achieve this or suggestion for this. Thanks in Advance,

      ritz1234

      F Offline
      F Offline
      freakyit
      wrote on last edited by
      #2

      you need the handle of the control that shows the video or calculate the correct region if you know the correct location of the "videocontrol".. greetz

      R 1 Reply Last reply
      0
      • F freakyit

        you need the handle of the control that shows the video or calculate the correct region if you know the correct location of the "videocontrol".. greetz

        R Offline
        R Offline
        ritz1234
        wrote on last edited by
        #3

        Hi rootjumper, Thanks for the response. The problem is that it is the SKYPE which shows the video while we do the video call.And I don't think it use any control for the video so how to get the handle of the region or the location of the video region? Thanks

        ritz1234

        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