From cdc78ada02f3d1d898692f41297ff575122e08ed Mon Sep 17 00:00:00 2001 From: Itay Sharoni <110981018+Itay-Sharoni@users.noreply.github.com> Date: Sat, 20 Apr 2024 13:06:29 +0300 Subject: [PATCH] Update cursor.py add more buttons from: https://github.com/JPersson77/LGTVCompanion/blob/master/Common/lg_api_buttons.h --- LGTV/cursor.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/LGTV/cursor.py b/LGTV/cursor.py index 2f83b24..42c460a 100644 --- a/LGTV/cursor.py +++ b/LGTV/cursor.py @@ -79,3 +79,45 @@ def home(self): def exit(self): self.send("type:button\nname:EXIT\n\n") + + def red(self): + self.send("type:button\nname:RED\n\n") + + def green(self): + self.send("type:button\nname:GREEN\n\n") + + def yellow(self): + self.send("type:button\nname:YELLOW\n\n") + + def blue(self): + self.send("type:button\nname:BLUE\n\n") + + def channel_up(self): + self.send("type:button\nname:CHANNELUP\n\n") + + def channel_down(self): + self.send("type:button\nname:CHANNELDOWN\n\n") + + def volume_up(self): + self.send("type:button\nname:VOLUMEUP\n\n") + + def volume_down(self): + self.send("type:button\nname:VOLUMEDOWN\n\n") + + def play(self): + self.send("type:button\nname:PLAY\n\n") + + def pause(self): + self.send("type:button\nname:PAUSE\n\n") + + def stop(self): + self.send("type:button\nname:STOP\n\n") + + def rewind(self): + self.send("type:button\nname:REWIND\n\n") + + def fast_forward(self): + self.send("type:button\nname:FASTFORWARD\n\n") + + def asterisk(self): + self.send("type:button\nname:ASTERISK\n\n")