Find position of system command prompt (Java Robot Class)

1 回表示 (過去 30 日間)
Tyler Murray
Tyler Murray 2016 年 9 月 29 日
編集済み: Tyler Murray 2016 年 9 月 29 日
I am running a batch file through the system command prompt. I am trying to close the cmd prompt using Java Robot Class (I can't just send an exit command to the prompt). My problem is determining the position of the close button of the command prompt. If I am able to get that I can easily use Java Robot Class to go to that position, click and release. The code I am using to open the command prompt is
fileName = uigetfile('*.*');
cmd = sprintf('program.bat "%s" &', fileName);
system(cmd);

回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Java from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by