Page 1 of 1

simulate keystroke in Windows

Posted: Tue Apr 18, 2017 10:15 am
by Johan_VH
Hi,

I'm looking for a way to simulate a keystroke in a Windows application to an HID device. So not sending a keystroke to an object or another program, but simulate an actual keystroke as you would press a key on a physical keyboard.

Is there any way to do this straight from Livecode or will I have to resort to using a local connection via a socket to a Python script which then takes care of this?

Thanks in advance!

Johan - Belgium

Re: simulate keystroke in Windows

Posted: Tue Apr 18, 2017 11:36 am
by Klaus
Dag Johan,

if you mean a NON LC application, the this is not possible directly from within Livecode.


Best

Klaus

Re: simulate keystroke in Windows

Posted: Tue Apr 18, 2017 12:21 pm
by Johan_VH
Servus Klaus,

it's not an application but an HID device attached to a USB-port, like an Arduino or Raspberry Pi.

Serial communication turns out to be too unreliable, even from Python, so I was looking into the HID direction now.