反正有没有用 java.awt.Component.dispatchEvent(AWTEvent) 做一个 mousemove 事件?
.dispatchEvent(new MouseEvent(client.a
.getComponentAt(1, 1),
MouseEvent.MOUSE_MOVED,
System.currentTimeMillis(),
MouseEvent.NOBUTTON,
x,y,
1,
false));
我现在得到了这个,但它不执行鼠标移动。我该怎么做?
编辑:我试过这样但它不起作用:
.dispatchEvent(new MouseEvent(client.a
.getComponentAt(1, 1),
MouseEvent.MOUSE_MOVED,
System.currentTimeMillis(),
MouseEvent.NOBUTTON,
x,y,
0,
false));
谢谢,杰弗里