is it possible to implement usb HID from sikulix?

Asked by karthikeyank

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

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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?

Revision history for this message
karthikeyank (karthikchidambaram86) said :
#2

I am asking how to implement keyboard events from sikulix . Keyboard events means refer below link
https://randomnerdtutorials.com/raspberry-pi-zero-usb-keyboard-hid/

In python script same as how to integrate to sikulix.

And also refer the below link
https://github.com/stjeong/rasp_vusb

Karthikeyan K

Revision history for this message
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.

Revision history for this message
karthikeyank (karthikchidambaram86) said :
#4

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

For ex:
Machine A->Windows 10
Pizero
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.