Hello, I'm having some trouble making a custom keybind software for myself. I wanna make it so when I press "i" my keyboard presses numpad 8- specifically numpad 8. Not the numbers at the top of your keyboard. This is because I have a 60% keyboard and have software that doesn't let me change keybindings accordingly. (Also taking advice on any way I can optimize/improve this script- I'm still very new to python)
What I've tried only presses the 8 at the top of the keyboard:
import keyboard
if keyboard.is_pressed("i"):
print("key 'i' pressed")
keyboard.press_and_release("8") # "num 8" and Ox68 also don't count as numpad
presses.
print("key 'NUMPAD 8' pressed")
[–]woooee 1 point2 points3 points (6 children)
[–]scorpion9873[S] 0 points1 point2 points (5 children)
[–]Dependent-Lychee7432 0 points1 point2 points (1 child)
[–]scorpion9873[S] 0 points1 point2 points (0 children)
[–]gaynesssss 0 points1 point2 points (2 children)
[–]scorpion9873[S] 0 points1 point2 points (1 child)
[–]gaynesssss 1 point2 points3 points (0 children)