不使用键盘如何截图? (Java 和 VMWare 的问题)
我面临一个小问题。
- 我在 VMWare 中有一个虚拟操作系统,我需要对其进行屏幕截图。
- 我必须能够从原始操作系统中截取屏幕截图(我的软件在原始操作系统中运行,并且禁止在虚拟操作系统中按键:))。
- 如果我在虚拟操作系统中操作,键盘和鼠标由VMWare使用,而原始操作系统无法使用组合键“Alt+Print Screen”截取屏幕截图。
我必须做的是:
- 我必须能够在虚拟操作系统中操作(我将在软件截屏时使用它)并且原始操作系统中的软件必须能够截取原始操作系统中的所有窗口的屏幕截图操作系统(包括VMWare窗口)
- 虚拟操作系统中不应该有任何按键
我解决这个问题的观点是在原始操作系统中截图,而不按键盘快捷键“Alt+Print Screen”(因为键盘由虚拟操作系统使用)。那么如何才能实现不使用键盘的截图呢?
任何人都可以告诉我如何管理它(使用某种编程语言,例如:c 或 c++?)我的软件是用 Java 编写的,因此可以从那里运行 c 和 c++ 代码。
祝大家一切顺利, 科米
I'm facing a little problem.
- I have a virtual OS in VMWare and i need to take a screenshot of it.
- I have to be able to take screenshot from original OS(my software is running in original OS and key presses in virtual OS are forbidden :)).
- If i operate in virtual OS the keyboard and mouse is used by VMWare and original OS cannot take screenshot using key combination "Alt+Print Screen".
What i have to be able to do is:
- I have to be able to operate in virtual OS(i will be using it while software is taking screenshots) and software in original OS has to be able to take screenshot of all the windows in original OS(including VMWare window)
- There shouldn't be any key presses in virtual OS
My view of solving this problem is to take a screenshot in original OS without pressing keyboard shortcut "Alt+Print Screen" (because keyboard is used by virtual OS). So how could taking a screenshot be achieved without using keyboard?
Can anyone give me an idea how to managa that (in some programming language for example:c or c++?) My software is written in Java so it's possible to run c and c++ code from there.
All the best to you all,
KMI
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该看看
机器人
类。具体来说,createScreenCapture
方法。You should have a look at the
Robot
class. Specifically, thecreateScreenCapture
method.