Answer the question
In order to leave comments, you need to log in
Do VMs like VirtualBox have an IO API?
Hi people. Does the virtual machine provide any API for working with it, for example, to move the mouse cursor, emulate keystrokes, get an image from the screen? If yes, how to work with it, where to dig, what languages are supported? I would like to play around with this, for example, in Haskell.
Answer the question
In order to leave comments, you need to log in
Well, I sort of figured it out, but I haven’t found a final solution yet - yes, there is api, it is described in the dock on sdk, which can be downloaded from here , everything is written in the docs on the first pages, there are a couple of examples in java and python. Approximately everything looks like this - there is an api accessible through the network (or "as if through the network", localhost) and there is an api built as com - i.e. completely local. The API itself is similar to winapi - everything you need is there, the dock by class takes about 300 pages. The sdk itself is written in c\c++ , there is also a "glue" for java and python. For the web version, it's like .net and php. If you are interested in other languages - use either in your favorite *language_name* which will generate classes or other wrapper based on the available WSDL (attached to the sdk). I haven't figured out the last one yet.
For example, I needed to install some software on it immediately after installing the VM. Do everything from one script without leaving it. That's why I came here...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question