How-To bind a key to a socket command?
#1
Hi,
i need to bind this simple command to a key on XBMC but i don't know how:

"
def send(cmdopen):
client = socket(AF_INET, SOCK_STREAM)
client.connect((my_ip, int(my_port)))
client.send(cmdopen)
client.close
"

So I need that when i click a key (e.g. "s") it run "send (cmdopen)
How can I do?

p.s. all that variables can be fixed (i know all of them and never change)
Reply

Logout Mark Read Team Forum Stats Members Help
How-To bind a key to a socket command?0