Jump to content
Sign in to follow this  

Searching for string in control

Recommended Posts



I am writing an add-on for a game called tanks. It's a 2D java applet game. The problem is it has no sounds, so I was thinking of writing a script which would search the marked TextArea and if a string is found (example: [user has been destroyed]) the it would play a sound like an explosion.

In the picture below I have marked out where I want the text to read from..


Now, I don't know is it possible for a java applet window. But it doesn't use swing, just the normal AWT toolkit, so there shouldn't be any problems. I am able to find the window text, but it's just getting the text of that control, which I don't know the name of.

any help would be great,


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this