Results 1 to 4 of 4
  1. #1
    Yoni201 is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default Help with Java interaction with flash games?

    Hey everyone,

    I'm kind of new to Java (but not to programming in general), and I'm trying to code a bot for the game Tetris.

    I guess it will work via keystrokes (sendkeys? or postmessage?), but i'm not exactly sure how to hook the current game status.

    (for my app to know which tetris blocks are where, and then decide where to put the block and which keystrokes to press).

    How would you all suggest I do this?

    Thanks everyone,

    Yoni201.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default Re: Help with Java interaction with flash games?

    If I needed to create a bot, I'd not choose to code it with Java. Java is built to be operating system agnostic (as much as possible) and doesn't get near close enough to the OS to allow easy coding of this type. Consider using C/C++ instead.

  3. #3
    Yoni201 is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default Re: Help with Java interaction with flash games?

    I was thinking about that, but I would like my bot to be cross-platform,

    and since Java runs in it's own OS, I thought it would be the best choice.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default Re: Help with Java interaction with flash games?

    Quote Originally Posted by Yoni201 View Post
    I was thinking about that, but I would like my bot to be cross-platform,

    and since Java runs in it's own OS, I thought it would be the best choice.
    No, because for every platform you'd have to use native code to allow the close interactions necessary for this to work. You might as well write the whole thing in C or C++.

Similar Threads

  1. Interaction with embedded java applet
    By veggieCoder in forum New To Java
    Replies: 10
    Last Post: 01-12-2012, 07:20 PM
  2. GUI problem, interaction in Java!!!
    By lulzim in forum New To Java
    Replies: 1
    Last Post: 05-20-2011, 10:34 PM
  3. multiplayer flash games
    By killahbeez in forum New To Java
    Replies: 6
    Last Post: 03-20-2011, 07:46 PM
  4. Java interaction
    By satimis in forum New To Java
    Replies: 4
    Last Post: 06-30-2010, 05:14 PM
  5. Replies: 5
    Last Post: 01-10-2010, 02:47 PM

Tags for this Thread

Posting Permissions

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