Scripting support - How to use it! #135
JPersson77
started this conversation in
General
Replies: 2 comments 3 replies
-
Cool. I hope I'll be able to learn how to use with command line :) |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks too! The description says it all for v2.2.2 but if you ping me on discord, https://discord.gg/7KkTPrP3fq , I can send you a development version which does a few more, including picture mode. Another user is currently testing it for creating a script for automatically setting a specific picture mode when a game is running. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is it?
LGTV Companion v2.2.0 and later can provide access via an API for asynchronously sending and receiving messages and events, via named pipes. This essentially allows external scripts and applications to act as clients and interact with LGTV Companion, and devices managed by it.
The feature is currently to be considered in BETA and under development. Further development will be based on input from users on the implementation and its usability.
What can it do?
V2.2.0 supports the following:
What can it not do?
Currently there are some important delimitations:
How is it implemented?
It is implemented using asynchronous named pipes, which means that most scripting- and programming languages can access it.
What about examples on how to use?
There are two basic example scripts which show the current implementation here: Example Scripts
The sample scripts implement a simple named pipes client using AutoHotKey (AHK) v2.
Like previously mentioned a named pipe client can be implemented in your favourite scripting-, or programming language, but if you want to try the examples ensure to install AutoHotKey by downloading the installer from here: https://www.autohotkey.com/ and then install it. (AutoHotkey is a free, open-source scripting language for Windows that allows users to easily create small to complex scripts for all kinds of tasks such as: form fillers, auto-clicking, macros, etc.)
Remember to enable the "External API" option in LGTV Companion.
Beta Was this translation helpful? Give feedback.
All reactions