### Multiple Command Examples Source: https://joaoapps.com/autoapps-command-system Examples of commands that can be processed by the same Tasker profile and task. ```text Volume=:=Media=:=5 Volume=:=Ringer=:=12 Volume=:=Ringer=:=2 ``` -------------------------------- ### Example AutoApps Command Source: https://joaoapps.com/autoapps-command-system A basic command string using the =:= separator to define data segments. ```text Volume=:=Media=:=10 ``` -------------------------------- ### Register Linux machine with AutoRemote Source: https://joaoapps.com/autoremote/linux Use this command to register your Linux machine. Ensure curl is installed and replace placeholders with your specific key, name, ID, and IP information. ```bash curl "http://autoremotejoaomgcd.appspot.com/registerpc?key=YOUR_KEY&name=NAME_TO_APPEAR_ON_YOUR_PHONE&id=ANY_UNIQUE_ID&type=linux&publicip=YOUR_PUBLIC_IP_OR_HOST_NAME&localip=$(sudo ifconfig eth0 |grep "inet addr" |awk '{print $2}' |awk -F: '{print $2}')" ``` -------------------------------- ### Import EventGhost Macro for Sending Files Source: https://joaoapps.com/autoremote/eventghost/tips-and-tricks Paste this XML into the EventGhost Configuration Tree to create a macro that handles file transfer events from Windows Explorer. ```xml AutoRemote.SendMessage(u'Android Device', u'', u'', u'files', u'', u'', u'', '', u'{eg.event.payload[0]}') ``` -------------------------------- ### Import EventGhost Macro for Sending Clipboard to Device Source: https://joaoapps.com/autoremote/eventghost/tips-and-tricks Paste this XML into the EventGhost Configuration Tree to create a macro that sends the current PC clipboard to an Android device via a keyboard shortcut. ```xml AutoRemote.SendMessage(u'My Device', u'URL', u'device', u'copy=:={eg.WinApi.Clipboard.GetClipboardText()}', u'', u'', u'', '', u'') ``` -------------------------------- ### Import EventGhost Macro for Clipboard Copy Source: https://joaoapps.com/autoremote/eventghost/tips-and-tricks Paste this XML into the EventGhost Configuration Tree to create a macro that sets the Windows clipboard based on incoming AutoRemote messages. ```xml EventGhost.PythonCommand(u'eg.WinApi.Clipboard.SetClipboardText(eg.event.payload.arcomm)') EventGhost.ShowOSD(u'Copied to clipboard: "{eg.event.payload.arcomm}"', u'0;-24;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0, False) ``` -------------------------------- ### Set PC volume via EventGhost Source: https://joaoapps.com/autoremote/faq Use this Python script in EventGhost to react to an AutoRemote volume message. ```python eg.plugins.System.SetMasterVolume(eg.event.payload.arcomm) ``` -------------------------------- ### Configure SSH KexAlgorithms for Raspberry Pi Source: https://joaoapps.com/autoremote/faq Add this line to /etc/ssh/sshd_config to resolve 'Algorithm negotiation failed' errors when communicating with a Raspberry Pi. ```text KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1 ``` -------------------------------- ### Command Syntax Mapping Source: https://joaoapps.com/autoapps-command-system Mapping a specific command instance to a general variable syntax for Tasker processing. ```text SO WE'RE TAKING THE SPECIFIC COMMAND: Volume=:=Media=10 AND TURNING IT INTO A GENERAL SYNTAX: command=:=voltype=:=level ``` -------------------------------- ### Send Text via Input Dialog Source: https://joaoapps.com/autoremote/eventghost/tips-and-tricks Two-part EventGhost configuration to show an input dialog and send the resulting text to a phone. ```xml AutoRemote.ShowInputDialog(u'Copy Text to Phone', u'Text to copy', u'', u'copy', False) ``` ```xml AutoRemote.SendMessage(u'Your device', u'', u'', u'paste=:={eg.event.payload}', u'', u'', u'', '', u'', u'') ``` -------------------------------- ### Open Received Files in EventGhost Source: https://joaoapps.com/autoremote/eventghost/tips-and-tricks Use this Python command within an EventGhost macro triggered by AutoRemote.Message.Open to open files sent to the PC. ```python from os import startfile;startfile(eg.event.payload.files[0]) ``` -------------------------------- ### Trigger EventGhost Event via Command Line Source: https://joaoapps.com/autoremote/eventghost/tips-and-tricks Execute this command in a terminal to trigger an event within EventGhost with associated payloads. ```bash "C:\Program Files (x86)\EventGhost\EventGhost.exe" -event CoolEvent payload1 payload2 payload3 ``` -------------------------------- ### Send Messages to EventGhost via URL Source: https://joaoapps.com/autoremote/eventghost/tips-and-tricks Send messages to a local EventGhost instance by accessing a specific URL structure. ```text http://localhost:1818/?message=MESSAGE_HERE ``` -------------------------------- ### Send PC Battery Level to Phone Source: https://joaoapps.com/autoremote/eventghost/tips-and-tricks An EventGhost XML configuration to retrieve the system battery level and send it to a mobile device via AutoRemote. ```xml EventGhost.PythonScript(u'from ctypes import windll, byref, Structure, c_ubyte, c_ulong\n\nclass SYSTEM_POWER_STATUS(Structure):\n \u00a0 \u00a0_fields_ = [("ACLineStatus", c_ubyte),\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ("BatteryFlag", c_ubyte),\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ("BatteryLifePercent", c_ubyte),\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ("Reserved1", c_ubyte),\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ("BatteryLifeTime", c_ulong),\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ("BatteryFullLifeTime", c_ulong)]\n\nsps = SYSTEM_POWER_STATUS()\nwindll.kernel32.GetSystemPowerStatus(byref(sps))\neg.result = sps.BatteryLifePercent') AutoRemote.SendMessage(u'My device', '', u'dddd', u'pcbatt=:={eg.result}', u'', u'', u'', '', u'', u'') ``` -------------------------------- ### AutoCast Callback Functions Source: https://joaoapps.com/autocast/custom-screens Functions that can be defined on your page to handle events triggered by AutoCast. ```APIDOC ## handleAutoCastCommand(command) Called when the "Free Form Data" field is set in Tasker. ## handleAutoCastSet(element, value) Called when an HTML element's value is set. ## handleAutoCastSetValues(values) Called when "Screen Values" are set in Tasker. ## handleAutoCastAllElementsSet() Called after all "Screen Elements" are set. ## handleAutoCastNotification(notificationFields) Called when a notification is set on the screen. ## handleSayText(text) Called when text is spoken out loud. ## handleAutoCastMediaError(url) Called when media fails to load. ## handleAutoCastID3Tags(tags) Called when ID3 tags are loaded from an MP3. ## handleAutoCastMediaPlaying() Called when media starts playing. ## handleAutoCastScreenSet() Called when the cast screen changes. ``` -------------------------------- ### AutoCast JavaScript Functions Source: https://joaoapps.com/autocast/custom-screens Functions that can be called from within a custom screen to interact with AutoCast and connected devices. ```APIDOC ## sendAutoCastMessage(values) Sends an AutoCast message to connected devices. - **values** (object) - A flat JavaScript object (e.g., {"key":"value"}). ## sayText(text) Stops current audio/video and speaks the provided text. - **text** (string) - Text to speak (max 100 characters). ## playYouTubeVideo(videoElementId, url, start) Plays a YouTube video over an existing HTML video element. - **videoElementId** (string) - ID of the video element. - **url** (string) - YouTube video URL. - **start** (number) - Start position in seconds. ## setHttpFileSource(url, senderIp, senderPort) Transforms an Android file URL into an HTTP file URL. - **url** (string) - Android file URL. - **senderIp** (string) - IP address. - **senderPort** (number) - Port number. ## controlAutoCastMedia(elementId, command, seek, volume) Controls currently playing media. - **elementId** (string|null) - HTML element ID or null for current media. - **command** (string) - One of: "pause", "play", "toggleplaypause", "stop", "volume", "seek", "skip". - **seek** (number) - Seconds to seek (only for "seek" command). - **volume** (number) - Volume 0-100 (only for "volume" command). ## loadAutoCastMedia(mediaElement, url, onEndedFunc) Loads audio or video on a media element. - **mediaElement** (object) - jQuery selector result. - **url** (string) - Media location. - **onEndedFunc** (function) - Callback when media ends. ## setDateTime(elementId) Sets current date and time on the specified element. ## setDate(elementId) Sets current date on the specified element. ## setTime(elementId) Sets current time on the specified element. ``` -------------------------------- ### Send messages from Linux using curl Source: https://joaoapps.com/autoremote/linux Use this command to send messages from your Linux machine to your registered device. ```bash curl “http://autoremotejoaomgcd.appspot.com/sendmessage?key=YOUR_KEY&message=hi” ``` -------------------------------- ### AutoApps Event Profile Configuration Source: https://joaoapps.com/autoapps-command-system The filter configuration required in a Tasker Event Profile to intercept specific commands. ```text PROFILE: Event > Plugin > AutoApps Filter: Volume=:= ``` -------------------------------- ### Tasker Task for Command Processing Source: https://joaoapps.com/autoapps-command-system A Tasker task that uses the variables extracted from the AutoApps command to perform actions. ```text A1. If %voltype ~ Media A2. Media Volume: %level A3. Else If %voltype ~ Ringer A4. Ringer Volume: %level A5. End If ``` -------------------------------- ### Send message to AutoRemote Wifi Service Source: https://joaoapps.com/autoremote/faq Call this URL to send a message directly to the device's local IP address when the Wifi service is active. ```http http://192.168.12.101:1817/?message=hello ``` -------------------------------- ### Remove Google Web Designer CSS Source: https://joaoapps.com/autocast/custom-screens Remove this specific CSS block from Google Web Designer-generated HTML files to ensure videos render correctly on the custom screen. ```css body { background-color: transparent; -webkit-transform: perspective(1400px) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); -webkit-transform-style: preserve-3d; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.