I need to know what code to use in MATLAB to control the cursor on the computer screen.
Im doing a project on moving/clicking the mouse cursor using a colour piece.
When the camera detects a desired colour piece, the mouse function will be executed. I've already done the colour and shape detection and now working on the coordinates.
However, i need to know how to link the coordinates with the mouse movement?
Done some research and some says I need to use javabot/moveptr or even set(0,'PointerLocation',[newX,newY]). I'm not sure which would be more practical and easy to learn here.
Thanks in advance!
|
|
0
|
|
|
|
Reply
|
Joel
|
5/24/2010 2:09:22 PM |
|
Joel Lim wrote:
> However, i need to know how to link the coordinates with the mouse
> movement?
> Done some research and some says I need to use javabot/moveptr or even
> set(0,'PointerLocation',[newX,newY]). I'm not sure which would be more
> practical and easy to learn here.
Ummm, how much more learning would be involved to use the set() command?
How much learning would be involved in learning to use a java class?
More, isn't it?
|
|
0
|
|
|
|
Reply
|
Walter
|
5/24/2010 2:42:16 PM
|
|
hmm..so looks like setPosition would be better?
|
|
0
|
|
|
|
Reply
|
Joel
|
5/26/2010 1:00:20 PM
|
|