Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
help me Please !!! in creating a JAVA code....which would click(mouse) a particular co-ordinate in a panel, AUTOMATICALLY at a particular time on it own...ie. without the help of use...
Posted
Updated 10-Aug-13 17:44pm
v2
Comments
ridoy 11-Aug-13 2:47am    
weird thinking!
Paras Awasthi 11-Aug-13 2:54am    
how can i create a code to
produce the same effect as of a
mouse click...

1 solution

You cannot click anything "automatically": the click is the operation on a hardware (mouse or any other device functioning like a mouse), and nothing else.

Apparently you need something different. Most likely, you just need some method with exact same effect as the physical click on mouse. If this is so, you should do exactly this. Write some function. Add a handler of the mouse click. In this handler, all you need to do is to call this function. After this is done, the call of this function will have the same effect as the click.

As simple as that.

—SA
 
Share this answer
 
Comments
Paras Awasthi 11-Aug-13 2:16am    
ok...but how can i create a code to
produce the same effect as of a
mouse click...
Sergey Alexandrovich Kryukov 11-Aug-13 11:56am    
Please read my answer again. I explained it in full.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900