Send Numerical Keys
Opened this issue · 3 comments
samueleastdev commented
This is great.
Can you also send numerical key for insatnce something like this.
lgtv --name orstv --ssl sendKey 1
and have 0 1 2 3 4 5 6 7 8 9
Cant see a way to do this so thought I would ask. Thanks
danielbgto commented
add to the end of remote.py. Not the best but still something
lgtv --name MyTV sendButton num_5
def num_0(self):
self.send("type:button\nname:0\n\n")
def num_1(self):
self.send("type:button\nname:1\n\n")
def num_2(self):
self.send("type:button\nname:2\n\n")
def num_3(self):
self.send("type:button\nname:3\n\n")
def num_4(self):
self.send("type:button\nname:4\n\n")
def num_5(self):
self.send("type:button\nname:5\n\n")
def num_6(self):
self.send("type:button\nname:6\n\n")
def num_7(self):
self.send("type:button\nname:7\n\n")
def num_8(self):
self.send("type:button\nname:8\n\n")
def num_9(self):
self.send("type:button\nname:9\n\n")
klattimer commented
Seems like a send keys function would be better
samueleastdev commented
@danielbgto @klattimer Thanks, I had a bit of time and tried loads of things to get this working. Not sure if it's even possible to send number keys. Just wondering if either of you have managed it? I'm about ready to give up but thought I'd check.
I am trying on an LG 2019