From: Iuza Delle Nuvole on
Does anyone know if is possible to get (and where is it of course...) a
"fake" keyborad (or mouse) driver that can simulate key press or mouse click
generated by code (like C++, VB.NET ecc) ?
I would like to "simulate" some condition on a virtual machine, but I can't
install any other SW in it because the OS installed is Linux.

Thx in advance

Sorry for my poor english ....


--
I.d.N.

..oO Please cut "-SOME TREES-" for reply Oo.


From: Anton Bassov on
Anything that you have simulated on a host machine gets processed by the
host, rather than guest machine - if you want to simulate events on the guest
machine,
you have to install your simulation software to it. If the guest OS is
Linux, then you have to get a Linux driver for it, so that you are asking a
question in the wrong NG...


Anton Bassov

"Iuza Delle Nuvole" wrote:

> Does anyone know if is possible to get (and where is it of course...) a
> "fake" keyborad (or mouse) driver that can simulate key press or mouse click
> generated by code (like C++, VB.NET ecc) ?
> I would like to "simulate" some condition on a virtual machine, but I can't
> install any other SW in it because the OS installed is Linux.
>
> Thx in advance
>
> Sorry for my poor english ....
>
>
> --
> I.d.N.
>
> ..oO Please cut "-SOME TREES-" for reply Oo.
>
>
>
From: The Junk Yard Dog on
> Anything that you have simulated on a host machine gets processed by the
> host, rather than guest machine - if you want to simulate events on the
> guest
> machine,
> you have to install your simulation software to it. If the guest OS is
> Linux, then you have to get a Linux driver for it, so that you are asking
> a
> question in the wrong NG...


The driver will be installed on host machine, not on the virtual.
If I connect a new keyboard or mouse on host, every time I press a key on
it, the Virtual machine doesn't matter about USB, PS/2, bluetooth or other
connection type; it will show the key that was pressed; regarding any type
of driver ecc ecc....

...oO Please cut "-SOME TREES-" for reply Oo.


From: Anton Bassov on
> If I connect a new keyboard or mouse on host, every time I press a key on
> it, the Virtual machine doesn't matter about USB, PS/2, bluetooth or other
> connection type; it will show the key that was pressed; regarding any type
> of driver ecc ecc....

This is because, from the host system's perspective, virtual machine is just
an application that runs on the host system. Apparently, it just redirects
keystrokes
to the virtual machine simply by means of Windows messages, so that the
guest OS has no clue where it physically comes from - there is no need for a
driver here. In any case, even if it does it from the kernel mode,
communication between the host and guest systems is done via some proprietary
mechanism known only to VM
designers, so you are out of luck.

Certainly, you can inject keystrokes and mouse events into the host system
input queue from the filter driver (as well as simply by SendInput()), but
only VM designers know how all that activity will be interpretated by the
VM.....

Anton Bassov


"The Junk Yard Dog" wrote:

> > Anything that you have simulated on a host machine gets processed by the
> > host, rather than guest machine - if you want to simulate events on the
> > guest
> > machine,
> > you have to install your simulation software to it. If the guest OS is
> > Linux, then you have to get a Linux driver for it, so that you are asking
> > a
> > question in the wrong NG...
>
>
> The driver will be installed on host machine, not on the virtual.
> If I connect a new keyboard or mouse on host, every time I press a key on
> it, the Virtual machine doesn't matter about USB, PS/2, bluetooth or other
> connection type; it will show the key that was pressed; regarding any type
> of driver ecc ecc....
>
> ...oO Please cut "-SOME TREES-" for reply Oo.
>
>
>