1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open .exe within Java component

Discussion in 'Other Languages' started by Elliott1992, Jul 20, 2012.

  1. Elliott1992

    Elliott1992 Junior Member

    Joined:
    Apr 16, 2011
    Messages:
    163
    Likes Received:
    30
    Hello all,

    I'm new here and this is my first question and post.
    Right my question is, Is it possible to open up a game using java and manipulate it (as a cheat). So i want to open up "chess" Using java (this is fine) But then i want to be able to "read" what is on the screen and act due to different actions, or moves etc.

    Is this possible? And what is the best way to do this?

    What i know so far

    I can open the file by doing
    Process process = Runtime.getRuntime().exec("");

    But i don't know how i can get information from it.

    Thank you
     
    Last edited by a moderator: Jul 20, 2012
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,519
    Likes Received:
    10,566
    Occupation:
    Full-time Knitter
    Location:
    Buenos Aires
    Wtf have you been smoking?

     
  3. bk071

    bk071 Jr. Executive VIP Jr. VIP

    Joined:
    Nov 24, 2010
    Messages:
    3,192
    Likes Received:
    7,986
    I think he meant his first post in the programming section and even that doesn't seem right... he has posted quite a few times in this section.

    <end of pointless post>

    LOL!
     
  4. Chris22

    Chris22 Regular Member

    Joined:
    Sep 29, 2010
    Messages:
    400
    Likes Received:
    1,060
    Java might not be the best language for this.

    Look up ReadProcessMemory/WriteProcessMemory
     
  5. Elliott1992

    Elliott1992 Junior Member

    Joined:
    Apr 16, 2011
    Messages:
    163
    Likes Received:
    30
    Sorry, I copied and pasted from the other forum thatr i posted it on (im new there) :p
     
  6. matessim

    matessim Junior Member

    Joined:
    Nov 22, 2008
    Messages:
    164
    Likes Received:
    73
    Occupation:
    Being funny and kind to puppies
    Location:
    UT 2003
    If you want to read and write from memory in Java i suggest you write a JNI wrapper in C and use that with Java, its not the kind of work java is built for(more like built not to work like this)