import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class test
{

	static Client client;
	Robot myRobot;

	public test( Client inClient ) throws AWTException
	{
		client = inClient;
		myRobot = new Robot( );

		mouseClick(50	, 50);	// 1
		mouseClick(100	, 50);  // 2
		mouseClick(150	, 50);  // 3
		mouseClick(50	, 100); // 4
		mouseClick(100	, 100); // 5
		mouseClick(150	, 100); // 6
		mouseClick(50	, 175); // 7
		mouseClick(100	, 175); // 8
		mouseClick(150	, 175); // 9
		mouseClick(50	, 250); // star
		mouseClick(100	, 250); // 0
		mouseClick(150	, 250); // #
	}


	public void mouseClick( int offX, int offY ) {

		Point p = client.getFrame().getLocationOnScreen();

		myRobot.mouseMove( p.x + offX, p.y + offY );
		myRobot.mousePress(InputEvent.BUTTON1_MASK);
		myRobot.mouseRelease(InputEvent.BUTTON1_MASK);

		myRobot.delay( 1000 );
	}



    public static void main( String args[] ) throws AWTException
    {
		Client myClient = new Client();
		myClient.createWindow();
		test app = new test( myClient );
    }
}

