hal >> keypress emulation
- robertspark
- Offline
- Platinum Member
Less
More
- Posts: 915
- Thank you received: 216
15 Mar 2021 20:44 #202407
by robertspark
hal >> keypress emulation was created by robertspark
is there a way built in within the hal to emulate a keypress?
I am aware of this python library which could be easily used / integrated as a new component, but was wondering if there was something else already available (i'd hate to reinvent the wheel.....)
pypi.org/project/keyboard/
thanks in advance
Please note I have a serial keypad that I'd like to be able to set up a couple of keys to be able to type Gcode into the mdi, yes I know I can use a bog standard keyboard, but I was wondering if there was another way via hal that this could be integrated with this serial device.
Rob
I am aware of this python library which could be easily used / integrated as a new component, but was wondering if there was something else already available (i'd hate to reinvent the wheel.....)
pypi.org/project/keyboard/
thanks in advance
Please note I have a serial keypad that I'd like to be able to set up a couple of keys to be able to type Gcode into the mdi, yes I know I can use a bog standard keyboard, but I was wondering if there was another way via hal that this could be integrated with this serial device.
Rob
Please Log in or Create an account to join the conversation.
17 Mar 2021 13:55 #202598
by andypugh
Yes, the "sendkeys" compoent can do this.
linuxcnc.org/docs/devel/html/man/man1/sendkeys.1.html
Replied by andypugh on topic hal >> keypress emulation
is there a way built in within the hal to emulate a keypress?
Yes, the "sendkeys" compoent can do this.
linuxcnc.org/docs/devel/html/man/man1/sendkeys.1.html
The following user(s) said Thank You: nkp, robertspark
Please Log in or Create an account to join the conversation.
Time to create page: 0.060 seconds