Jump to content
Sign in to follow this  
localghost

Searching for string in control

Recommended Posts

localghost

Hello,

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..

http://img707.imageshack.us/img707/8127/ddsddfff.png

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,

thanks.

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  

×