2012-10-29, 20:03
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)
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)