@Override
             public void run(){
                 
	  try {
		  home = null;   
                 numMsg=test1.getnumMesg();
        
             try {
                 home = new Robot();
                 
                  
            } catch (AWTException ex) {
                    Logger.getLogger(ThreadTexto.class.getName()).log(Level.SEVERE, null, ex);
            }
             
             
                 
                  Thread.sleep(300);
                 /* Este metodo es para bloquear la computadora
                      try {
                          Runtime.getRuntime().exec("rundll32 user32.dll,LockWorkStation");
                      } catch (IOException ex) {
                          Logger.getLogger(ThreThreadTextoss.getName()).log(Level.SEVERE, null, ex);
                      }
                */
               
             switch(test1.getText()){
                 
                 case "Command1-Enter":
                      home.keyPress(KeyEvent.VK_ENTER);
                     home.keyRelease(KeyEvent.VK_ENTER);
                     break;
                 case "Command2-Back":
                         home.keyPress(KeyEvent.VK_BACK_SPACE);
                         home.keyRelease(KeyEvent.VK_BACK_SPACE);
                     break;
                 case "Right-Click":
                        break;
                 case "Left-Click":
                     break;
                 case "ScrollDown":
                     break;
                 case "ScrollUp":
                     break;
                 default:
                      type(test1.getText());
                         
                     
             }
          
         
        } catch (InterruptedException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} 
   
    }