Results 1 to 7 of 7
  1. #1
    paradox is offline Member
    Join Date
    Nov 2013
    Posts
    3
    Rep Power
    0

    Default VB.Net guy with a Java question....

    Hi everyone!

    Hey, so.... I don't program Java. Never really been something that I've been interested in. I do mostly VB.net/VBA/Data Analysis and databases for the department I work in as their IT guy (and I'm severely underpaid at that). I have a project that I'm trying to take on as a work-around to our company's Oracle Dev team not caring enough to answer our inquiries with them in a timely manner. My project involves my being able to develop another application that is capable on monitoring our users interactions (mouse_down actions on certain buttons) with a Javaw.exe based SwingSet2 application (I believe it's SwingSet2 anyways...).

    Anyways... Is there a way to monitor a Java application and be able to monitor for certain windows that are open in the JVM and when a user clicks on certain buttons within that window so that MY application can simply give a +1 attribute for whatever that particular button represents and then record that data to a database for metrics purposes?

    I realize this is kinda a random question, but I figured I'd come to the java gurus since the VB/C# forums are really REALLY lacking in regards to Java interaction (for the most part). Here's a thread on VBforums.com, by me, about the same: http://www.vbforums.com/showthread.p...-Access-Bridge As you can see, they aren't very helpful in the subject.... (tho they do try and I greatly appreciate it)

    Hell, if someone were to tell me "Yeah, you can do exactly what you're saying within ANOTHER Java application", I'd be COMPLETELY down to install Eclipse (or whatever IDE is recommended) and learn me some Java...

    Sincerely,
    JClueless....
    Last edited by paradox; 11-01-2013 at 11:04 AM.

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,703
    Rep Power
    5

    Default Re: VB.Net guy with a Java question....

    I can't speak for Visual Basic, but generally in the programming world things don't happen automagically, you have to make it happen. In this case if you want to monitor an application, that application needs to be designed such that it CAN be monitored. And since you have to ask, it is of course not built that way.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    paradox is offline Member
    Join Date
    Nov 2013
    Posts
    3
    Rep Power
    0

    Default Re: VB.Net guy with a Java question....

    Quote Originally Posted by gimbal2 View Post
    I can't speak for Visual Basic, but generally in the programming world things don't happen automagically, you have to make it happen. In this case if you want to monitor an application, that application needs to be designed such that it CAN be monitored. And since you have to ask, it is of course not built that way.
    With MOST Visual Studio based applications, you can use Spy++ to determine what's going on. There's scripting apps like AutoIt that are able to determine button names and you can program out (or query) specific interactions... Similar to how people make gaming bots.... No monitoring application I have tried can read Java in a similar manner. They always say something about AWT<somethingsomethingsometing> and don't provide any other details.

    Then that might explain why when I'm using JAB i'm seeing the button labels, and other information, but nothing as far as the objects internal name or a HEX address for it (which JAB would need to work with).

    I've already written to one of the Dev team members responsible for this particular application and am awaiting his reply, but I'm trying to dig and see what I can find out on my own... I wouldn't be a diligent hack if I didn't. :)

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,703
    Rep Power
    5

    Default Re: VB.Net guy with a Java question....

    Man, its way too easy to hook .NET applications.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default Re: VB.Net guy with a Java question....

    That's because .NET is designed for the one platform.
    Indeed a platform that is, at least in part, written in .NET.
    It's not surprising then that you can hook into those sorts of apps.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  6. #6
    paradox is offline Member
    Join Date
    Nov 2013
    Posts
    3
    Rep Power
    0

    Default Re: VB.Net guy with a Java question....

    Quote Originally Posted by Tolls View Post
    That's because .NET is designed for the one platform.
    Indeed a platform that is, at least in part, written in .NET.
    It's not surprising then that you can hook into those sorts of apps.
    Correct, and I realize that as well... Which is why I guess I was hoping that maybe someone here would be able to point me in the right direction for how to hook into this javaw application and perhaps recommend a decent API to do it with.

  7. #7
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,703
    Rep Power
    5

    Default Re: VB.Net guy with a Java question....

    Someone really proficient at Java might actually hack something together using the debugging services built into the JVM. But that would still require the application to be started with debugging services activated, you are not going to just spy on a program (and thank god for that).
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. New to Java. Hello! and a question.
    By tzzt123 in forum New To Java
    Replies: 17
    Last Post: 05-13-2013, 01:08 AM
  2. Hello I have a question about map java
    By yoron1234567 in forum Forum Lobby
    Replies: 2
    Last Post: 03-14-2012, 04:14 PM
  3. Java Question
    By Etimer in forum New To Java
    Replies: 7
    Last Post: 02-04-2012, 07:09 AM
  4. Java Question [Beginner Question]
    By joker760 in forum New To Java
    Replies: 3
    Last Post: 12-13-2011, 04:01 PM
  5. Java Question
    By Jay-1.1 in forum New To Java
    Replies: 11
    Last Post: 05-01-2008, 04:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •