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. Want to listen an event of other application

Want to listen an event of other application

Scheduled Pinned Locked Moved C#
tutorialquestion
2 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.
  • N Offline
    N Offline
    Naveed727
    wrote on last edited by
    #1

    Hello, I have an application (application1.exe) which do shows an popup at spicific event. I want to create an application that will be able to hearing for application1.exe. when the event is occure I want to get the popup information into my application. I want just clue, How will I do this? I hope someone GURU will guide me. Regards nidostyle

    D 1 Reply Last reply
    0
    • N Naveed727

      Hello, I have an application (application1.exe) which do shows an popup at spicific event. I want to create an application that will be able to hearing for application1.exe. when the event is occure I want to get the popup information into my application. I want just clue, How will I do this? I hope someone GURU will guide me. Regards nidostyle

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Unless the app exposes some kind of external notification system, there is no event that you can listen for. The only possibility you have is using Windows Hooks, I believe the CBT hook specifically, and watch for the pop up window to be created. But, this is NOT a trivial thing to do. Then, getting the data from that window is the next difficult task. How you do this depends on the window, how it's structured, and if the controls it hosts responds to the WM_GETTEXT message. You might want to Google for "WM_GETTEXT" for examples.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      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