How to simulate mouse click events to key events ?
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
For eg: If I click left click of the mouse it should fucntion as left arrow of the key board.
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Easily. At least in jdk1.1 event model. Get the MouseEvent, create KeyEvent and send it via Component.processKeyEvent() method. You can play with any event types like this. The example of case you described can be downloaded from http://druid.ml.org/~vps/Java/examples/Event.java.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How to simulate mouse click events to key events ?