is it possible to implement usb HID from sikulix?

Asked by karthikeyank on 2019-12-16

I want to implement USB HID keyboard and mouse device using Sikulix? If possible means how to implement USB HID.

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

SikuliX does not "implement" any devices.

It just uses Java AWT Robot class to access the screen (screenshots) and issue mouse and keyboard actions against the GUI.

So what are you talking about?

I am asking how to implement keyboard events from sikulix . Keyboard events means refer below link

In python script same as how to integrate to sikulix.

And also refer the below link

Karthikeyan K

RaiMan (raimund-hocke) said : #3

ok, very nice :-)

... but the device itself runs as a keyboard/mouse device, that can be controlled via a client(PC)/server(R-Pi) in this example using a Python script, that writes to some /dev.... target.

You might try to do the same Python scripting in SikuliX Jython, but it might not work due to the Java implementation of Jython, that does not allow, to directly access C-based stuff (native libraries) like real Python can do.

As such SikuliX is only Python compatible on the language level and restricted to level 2.7.

Without taking remote need to pass keyboard input to implement the Sikulux source code. How can implement?

For ex:
Machine A->Windows 10
Machine B-> Connect Pizero using OTG method (Windows 7)

I want to run Keyboard input machine A-> It executed automatically in the machine B

For ex:
Input: This is a test <capslock> from machine A
Machine B->Open the notepad receive the input the message.

You have any example of java code HID.

Karthikeyan K

Can you help with this problem?

Provide an answer of your own, or ask karthikeyank for more information if necessary.

To post a message you must log in.