|
新java问题
Integer p = (Integer) e.nextElement();{
if (p==1){try {
Robot robot = new Robot();
robot.delay(10);
robot.keyPress(KeyEvent.VK_1);
} catch (AWTException as) {
as.printStackTrace();
}
}
}
当我的code是酱(蓝色),它不会auto press the key number 1
Integer p = (Integer) e.nextElement();{
JOptionPane.showMessageDialog(null,"p:"+p);
if (p==1){try {
Robot robot = new Robot();
robot.delay(10);
robot.keyPress(KeyEvent.VK_1);
} catch (AWTException as) {
as.printStackTrace();
}
}
}
当我加入一个pop up msg(红色), 它就会auto press the key number 1
请问是为什么,有什么办法solve这problem??
please help 
[ 本帖最后由 我是你的分身 于 24-1-2008 09:09 PM 编辑 ] |
|
|
|
|
|
|
|

楼主 |
发表于 23-1-2008 12:59 PM
|
显示全部楼层
新java问题
[ 本帖最后由 我是你的分身 于 24-1-2008 09:09 PM 编辑 ] |
|
|
|
|
|
|
| |
本周最热论坛帖子
|