Create own Key bindings

Hey,
I tried to create my own Key bindings liek that:

from pynput.keyboard import Key, Listener
def on_press(key):
    log("test")

def on_release(key):
    if key == Key.esc:
            # Stop listener
            return False

# Collect events until released
with Listener(
    on_press=on_press,
    on_release=on_release) as listener:
    listener.join()

But if I try to load the plugin phBot stops responding .

Is there a way to implement this?

You could use the useless Silkroad emote actions (like 7 buttons) to trigger quick stuffs from the game.

CLIENT_CHARACTER_EMOTE_USE = 0x3091

byte emoteType

@G4ndalf did u figure something out?

nop but I didnt try it anymore

i see :confused:

Is there api for it ? A friend asked

this will get triggered even if an other user is using an emote :wink:

My idea is about handling client packets, not server packets. A shortcut to trigger plugin stuffs from game.

Somebody asked something pretty similar before.