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 / C++ / MFC
  4. Hooking into Java Application like in Visual C++

Hooking into Java Application like in Visual C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++javahelpquestion
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.
  • T Offline
    T Offline
    Tony Westminster
    wrote on last edited by
    #1

    Hello, under Visual C++ there are numerous examples of hooking into another application, i.e. adding one's own menus to Notepad etc. Is there a similar thing available for Java? A net search has not resulted in anything useful. What I would like to do: 1) Programmatically access the menu functions of a swing GUI in another 3rd party Java App for which I just have compiled classes, no source. I know that awt.robot can do a bit, but I am looking for more: 2) Automatically extracting text from a Java Text Field of the 3rd party app (to repeat: I have no source code for this, therefore have to "hook" into the app from outside). I have seen examples for C++ on codeproject, but nothing for Java. 3) A final challenge: adding my own menus to this 3rd party swing app. Again, possible in C++. I think impossible in Java. Thanks so much for your help! You are my last hope, literally. Kind regards, Tony

    P 1 Reply Last reply
    0
    • T Tony Westminster

      Hello, under Visual C++ there are numerous examples of hooking into another application, i.e. adding one's own menus to Notepad etc. Is there a similar thing available for Java? A net search has not resulted in anything useful. What I would like to do: 1) Programmatically access the menu functions of a swing GUI in another 3rd party Java App for which I just have compiled classes, no source. I know that awt.robot can do a bit, but I am looking for more: 2) Automatically extracting text from a Java Text Field of the 3rd party app (to repeat: I have no source code for this, therefore have to "hook" into the app from outside). I have seen examples for C++ on codeproject, but nothing for Java. 3) A final challenge: adding my own menus to this 3rd party swing app. Again, possible in C++. I think impossible in Java. Thanks so much for your help! You are my last hope, literally. Kind regards, Tony

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      I belive the menus work differently in JAVA, plus i dont know wheather its "easly" possible to hook it coz the JVM has control over it. How do you want to hook it any way, from JAVA or from VC++


      P.R.A.K.A.S.H

      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