Backspace key identifier - Solved
- slowpoke
- Offline
- Elite Member
-
Less
More
- Posts: 195
- Thank you received: 26
27 Sep 2024 15:35 - 27 Sep 2024 15:48 #310900
by slowpoke
Backspace key identifier - Solved was created by slowpoke
I'm have a .py script that sends keystrokes to LinuxCNC.
Basically you define the the keystroke in one array for example:
sendArray { "G1", "X", "space"} etc.
Then in a matching array you specify if that item should be sent as text or as a keystroke, so for the above example "G1" and "X" would be specified as 2, 2 means just send as text, "space" would be specified as type 1 and "space" would be sent as if you pressed the space bar key.
I have this working for all desired keys except the backspace key.
I'm not sure what the correct text is for the backspace key, I have tried:
backspace
Backspace
Back Space
back space
None of these are correct
I struggled with the Enter key earlier until I tried "Return" and that works, so just the backspace key is unknown at this point.
Where can I find the correct definition that invokes the backspace key?
I'm using this with Axis if that matters.
Edit: solved the correct sequence is "BackSpace"
Basically you define the the keystroke in one array for example:
sendArray { "G1", "X", "space"} etc.
Then in a matching array you specify if that item should be sent as text or as a keystroke, so for the above example "G1" and "X" would be specified as 2, 2 means just send as text, "space" would be specified as type 1 and "space" would be sent as if you pressed the space bar key.
I have this working for all desired keys except the backspace key.
I'm not sure what the correct text is for the backspace key, I have tried:
backspace
Backspace
Back Space
back space
None of these are correct
I struggled with the Enter key earlier until I tried "Return" and that works, so just the backspace key is unknown at this point.
Where can I find the correct definition that invokes the backspace key?
I'm using this with Axis if that matters.
Edit: solved the correct sequence is "BackSpace"
Last edit: 27 Sep 2024 15:48 by slowpoke.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20074
- Thank you received: 6831
10 Oct 2024 22:17 #311778
by tommylight
Replied by tommylight on topic Backspace key identifier - Solved
Bump to remove it from the "no replies" list.
Thank you.
Thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.045 seconds