package util; import java.awt.AWTException; import java.awt.Robot; import java.awt.Toolkit; import java.awt.datatransfer.StringSelection; import java.awt.event.KeyEvent; public class KeyBoardUtil { /**Tab键封装*/ public static void pressTabKey(){ Robot robot = null; try{