Results 1 to 5 of 5
  1. #1
    gib65 is offline Member
    Join Date
    Jun 2010
    Posts
    86
    Rep Power
    0

    Default writing a program to interface with other programs

    There must be some mechanism that windows provides that allows an application programmed in whatever language to interface with other programs running on the same computer.

    Specifically, I will be beginning a project soon in which I have to program in Java an application that reads from a dxf file and produces a plan/model from it in AutoCAD. It needs to communicate with AutoCAD and send it instructions (ex. draw line, make face, create new layer, etc.).

    Does Windows have resources/mechanisms that allow one to do this in Java? Or can Java do it on its own without the blessing of the OS?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default Re: writing a program to interface with other programs

    What does the AutoCAD program have for public interfaces to receive input/instructions from other programs?
    One way Java has to "interface" to the GUI of other programs would be via the Robot class.

  3. #3
    gib65 is offline Member
    Join Date
    Jun 2010
    Posts
    86
    Rep Power
    0

    Default Re: writing a program to interface with other programs

    I'm not sure what AutoCAD uses to interface with other programs but to interface with humans it uses the keyboard and mouse (but that's obvious).

    I will look into the Robot class. Thanks for that.

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: writing a program to interface with other programs

    Sure would have been nice to know you'd already received help here.

    Crossposted: writing a program to interface with other programs
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    gib65 is offline Member
    Join Date
    Jun 2010
    Posts
    86
    Rep Power
    0

    Default Re: writing a program to interface with other programs

    Quote Originally Posted by KevinWorkman View Post
    Sure would have been nice to know you'd already received help here.

    Crossposted: writing a program to interface with other programs
    Yes, you got me on that one. Very sorry about that.

    I've been kinda anxious to get some answers to this because my butt is on the line, and with all the multitasking I've been doing, remembering to be forward with my cross-posts slipped my mind (I realize that's no excuse - I should know better ). I will right away mention my cross-post on the other forum so I don't upset them as well.

    Thanks for reminding me of the proper edicate!

Similar Threads

  1. Writing a programs
    By smray7 in forum New To Java
    Replies: 7
    Last Post: 04-28-2011, 08:49 AM
  2. Replies: 5
    Last Post: 11-02-2008, 08:58 PM
  3. Writing a program(HELP!! It's due tommorrow!!!!!)
    By mk3823 in forum New To Java
    Replies: 9
    Last Post: 10-24-2008, 12:13 PM
  4. Due Tommorow Writing a Program Please Help
    By gallimaufry in forum New To Java
    Replies: 4
    Last Post: 10-23-2008, 04:15 AM
  5. how begin with writing a new program ?
    By dimitrist in forum New To Java
    Replies: 11
    Last Post: 05-13-2008, 04:49 AM

Posting Permissions

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