Saturday 26 January 2013

Controlling Keyboard switches with Matlab code


import java.awt.Robot;
import java.awt.event.*;

robot = Robot();

robot.keyPress(KeyEvent.VK_CAPS_LOCK);
robot.keyRelease(KeyEvent.VK_CAPS_LOCK);

I have shown with an example of "CAPS LOCK",but it can be replaced with the other buttons also


1 comment:

  1. Thanks for a great article. Your tips are accurate and they will be of great help to me with my business. I bookmarked your site, will be back ! !

    ReplyDelete