![]() Like press Q then will execute PlayerDropItemEvent. Not all the key in minecraft can be used for plugin, it need to have an event to detect the player pressed the keyboard. Pynput's click and scroll seem to work fine. It is possible to add more hotkeys, but some may hinder gameplay.For now I will just set the controls to what pynput gives minecraft to make my macro work, but I would prefer to be able to use the button(s) outside of the macro as well.When I replaced '2' with 'e' Minecraft recognised it as the same as '2', and it even pressed the button, so I am extra confused now. It is properly recognised by the computer, as shown by and notepad. ![]() In place of '2' I have also tried Ke圜ode(49) and gotten the same result. Time.sleep(7) # this is just so I have time to switch to minecraft before it activates (see picture) Is there a way to make pynput press the correct buttons? # Code snippet 1 I know this because when I ran (code snippet 1) while setting the controls of Hotbar slot 3 it showed as a weird character instead of a number. I am trying to make a macro in Minecraft using pynput, but it seems that pynput does not press the correct buttons on the keyboard.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |