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.
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.
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.
Re: Help with Java interaction with flash games?
Quote:
Originally Posted by
Yoni201
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++.