use any application .exe by its short key

2 Ansichten (letzte 30 Tage)
ahmed ashiry
ahmed ashiry am 14 Mär. 2015
Beantwortet: Image Analyst am 14 Mär. 2015
i want pen an application .exe and make some work in this application using matlab code using the short key of this application as alt+ e is meaning open a new folder as example. to open some thing in this application it must click on keyboard on the following keys one after one
ctrl+e (click on ctrl key and on e key)
alt+js+om+ahmed
tab+tab+tab+tab+enter
  3 Kommentare
ahmed ashiry
ahmed ashiry am 14 Mär. 2015
yes it also my question and i was delete it
Jan
Jan am 14 Mär. 2015
@Ahmed: What exactly is your question?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 14 Mär. 2015
Try the java robot:
import java.awt.Robot
import java.awt.event.*
robot = Robot;
robot.keyPress(KeyEvent.VK_CONTROL);
robot.keyPress(KeyEvent.VK_E);
robot.keyRelease(KeyEvent.VK_E);
robot.keyRelease(KeyEvent.VK_CONTROL);

Weitere Antworten (0)

Kategorien

Mehr zu Robotics finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by