Results 1 to 8 of 8

Thread: [RESOLVED] Java's Equivalent Of OLE Automation

  1. #1

    Thread Starter
    Addicted Member MethadoneBoy's Avatar
    Join Date
    Oct 2001
    Location
    Preferably somewhere between Keira Knightley and Diane Kruger but I'm not fussy
    Posts
    180

    Resolved [RESOLVED] Java's Equivalent Of OLE Automation

    Hi guys,

    Is there any facility or API in Java that can allow a Java application to interface/interact with other Java-based applications on a user's PC? From my experience in VB programming I know that some applications have OLE Automation that allows Microsoft applications to execute commands. Is there a Java equivalent to this process? A Java way of doing something similar to the following -

    Code:
    Dim objXL As Object
    Set objXL = GetObject(, "Excel.Application") 
    'I'm not looking to interface with Excel using Java, 
    'I've just used it as an example here
    Any help would be appreciated.

    Thanks
    "'Oh, hello Mr. Crick! What do you think of Jeffrey Archer?' Clip-clip-clip! Oh, come on! Who are you kidding? You wait til I'm mayor, you'll see how tough I am! Christ almighty...."

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Java's Equivalent Of OLE Automation

    What is it you're trying to accomplish?
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Addicted Member MethadoneBoy's Avatar
    Join Date
    Oct 2001
    Location
    Preferably somewhere between Keira Knightley and Diane Kruger but I'm not fussy
    Posts
    180

    Re: Java's Equivalent Of OLE Automation

    A Java-based database application that our company uses (front-end is a series of GUIs accessible via Internet Explorer, back-end is a SQL Server database) involves a lot of repetitive, manual data entry for certain tasks. I'm looking for a way to write an application that will listen or detect for certain events (such as particular forms or windows opening) or will get text from specific parts of the screen and can then interact with the application in some way (print/send text to its forms, etc).

    The reason I'm asking is because we have an older database application that was written in Visual Basic (I think) that has a series of functions and objects that can be called in user-written Visual Basic applications to automate data input. I'd like to know if it's possible to do something similar to this in Java.
    "'Oh, hello Mr. Crick! What do you think of Jeffrey Archer?' Clip-clip-clip! Oh, come on! Who are you kidding? You wait til I'm mayor, you'll see how tough I am! Christ almighty...."

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Java's Equivalent Of OLE Automation

    I'm not sure because I've never done something like this but I guess java instrumentation might be what you need
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5

    Thread Starter
    Addicted Member MethadoneBoy's Avatar
    Join Date
    Oct 2001
    Location
    Preferably somewhere between Keira Knightley and Diane Kruger but I'm not fussy
    Posts
    180

    Re: Java's Equivalent Of OLE Automation

    Looks interesting, thanks for the tip.
    "'Oh, hello Mr. Crick! What do you think of Jeffrey Archer?' Clip-clip-clip! Oh, come on! Who are you kidding? You wait til I'm mayor, you'll see how tough I am! Christ almighty...."

  6. #6

    Thread Starter
    Addicted Member MethadoneBoy's Avatar
    Join Date
    Oct 2001
    Location
    Preferably somewhere between Keira Knightley and Diane Kruger but I'm not fussy
    Posts
    180

    Re: Java's Equivalent Of OLE Automation

    Just found a link that's quite interesting. While it couldn't be described as Java's equivalent of OLE Automation it does allow for you to write a programme that will automate manual form input - the Java Robot Class. Worth a read if you're not familiar with it.
    "'Oh, hello Mr. Crick! What do you think of Jeffrey Archer?' Clip-clip-clip! Oh, come on! Who are you kidding? You wait til I'm mayor, you'll see how tough I am! Christ almighty...."

  7. #7
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [RESOLVED] Java's Equivalent Of OLE Automation

    Thanks for sharing
    looks interesting, I've never seen it before
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  8. #8

    Thread Starter
    Addicted Member MethadoneBoy's Avatar
    Join Date
    Oct 2001
    Location
    Preferably somewhere between Keira Knightley and Diane Kruger but I'm not fussy
    Posts
    180

    Re: [RESOLVED] Java's Equivalent Of OLE Automation

    I've written a (very) basic class that successfully interacts and performs functions on a couple of web-based forms that we use internally here. So it's got a lot of potential for any other businesses with similar processes out there. What I need to do now, of course, is find out how to use Java to determine if a window/form has fully loaded and ready for input. But that's another thread (possibly). Then again, the Instrumentation API looks very useful in that regard.
    "'Oh, hello Mr. Crick! What do you think of Jeffrey Archer?' Clip-clip-clip! Oh, come on! Who are you kidding? You wait til I'm mayor, you'll see how tough I am! Christ almighty...."

Posting Permissions

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



Click Here to Expand Forum to Full Width