P. 1
How to Control Mouse Movement Simply Without Java Object with Matlab

How to Control Mouse Movement Simply Without Java Object with Matlab

|Views: 47|Likes:
Published by Jans Hendry
August 30, 2011

[JANS HENDRY / EE&IT UGM, INDONESIA]

HOW TO CONTROL MOUSE MOVEMENT SIMPLY

Is it possible to have other than Java Library??? Yap! In the first article i have shown you how to do this by using java library embedded in MATLAB. One can avoid using java by only giving value to PointerLocation as one of property. I made a program to show how it works.

myscreen=get(0,'MonitorPositions'); x=myscreen(3); y=myscreen(4); for t=1:20:x coor=200*sin(t); pause(0.1); set(0,'pointerLocation',
August 30, 2011

[JANS HENDRY / EE&IT UGM, INDONESIA]

HOW TO CONTROL MOUSE MOVEMENT SIMPLY

Is it possible to have other than Java Library??? Yap! In the first article i have shown you how to do this by using java library embedded in MATLAB. One can avoid using java by only giving value to PointerLocation as one of property. I made a program to show how it works.

myscreen=get(0,'MonitorPositions'); x=myscreen(3); y=myscreen(4); for t=1:20:x coor=200*sin(t); pause(0.1); set(0,'pointerLocation',

More info:

Published by: Jans Hendry on Aug 29, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

05/12/2014

pdf

August 30, 2011

[JANS HENDRY / EE&IT UGM, INDONESIA]

HOW TO CONTROL MOUSE MOVEMENT SIMPLY

Is it possible to have other than Java Library??? Yap! In the first article i have shown you how to do this by using java library embedded in MATLAB. One can avoid using java by only giving value to PointerLocation as one of property. I made a program to show how it works.

myscreen=get(0,'MonitorPositions'); x=myscreen(3); y=myscreen(4); for t=1:20:x coor=200*sin(t); pause(0.1); set(0,'pointerLocation',[t y/2+coor]) end

so, why matlab give some options to do same thing? Above codes work in Windows environment only, but Java Object would work in Mac and Linux environment... Its all up to you..

1

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->