java control of the mouse wheel
Mostrar comentarios más antiguos
I am trying to programmatically mouse wheel up/down within a window. I can move and click the the mouse fine but I cant scroll up or down.
Within the Matlab command window I entered
>> rand(10000, 1) % make something to scroll up to
Then after that prints
import java.awt.Robot;
import java.awt.event.*;
mouse = Robot;
mouse.mouseWheel(-100); % negative is up
I have tried +100 and other larger and smaller values - all no luck.
I have read How can I programmatically control mouse motion and clicks with MATLAB? and it is great for moving the mouse and clicking but it does not help with scrolling.
1 comentario
per isakson
el 21 de En. de 2018
Respuestas (1)
Chris Wilkening
el 21 de En. de 2018
0 votos
Categorías
Más información sobre Robotics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!