Using Java Robot class in Parfeval
显示 更早的评论
Now I want to use Java Robot Class in a function. That function will be called by parfeval(), which will be evaluated in background.
- It seems that Java robot class can not be used in parfeval().*
May I kindly know if there is a solution for this problem?
采纳的回答
更多回答(1 个)
Walter Roberson
2016-7-22
0 个投票
Each worker has its own process, and that process has no assigned graphics and no assigned keyboard or mouse. When you use the Java Robot class within that process, there is no keyboard or mouse to simulate presses of.
类别
在 帮助中心 和 File Exchange 中查找有关 Call Java from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!