simulate keystroke in Windows

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Johan_VH
Posts: 67
Joined: Fri Mar 28, 2014 2:46 pm

simulate keystroke in Windows

Post by Johan_VH » Tue Apr 18, 2017 10:15 am

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

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: simulate keystroke in Windows

Post by Klaus » Tue Apr 18, 2017 11:36 am

Dag Johan,

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


Best

Klaus

Johan_VH
Posts: 67
Joined: Fri Mar 28, 2014 2:46 pm

Re: simulate keystroke in Windows

Post by Johan_VH » Tue Apr 18, 2017 12:21 pm

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.

Post Reply

Return to “Windows”