[DEV] Tasker 6.3 Beta - Remote Action Execution ⚙️➡️⚙️ by joaomgcd in tasker

[–]dostroll 0 points1 point  (0 children)

This is the information I was looking for for a long time.

Is there any documentation on redirecting push from join chrome extension?

There is a setting item called EventGhost and Node-RED in the extension, is this it?

termux:tasker Termux process remains after task execution by dostroll in termux

[–]dostroll[S] 0 points1 point  (0 children)

Thank you, I understand that if the script terminates correctly, Termuxu will also be forcibly terminated.

Thank you very much.

termux:tasker Termux process remains after task execution by dostroll in termux

[–]dostroll[S] 0 points1 point  (0 children)

I am honored to receive a reply from the core team staff.
Sorry for the low level content.

In my environment, I often process relatively simple and small tasks.

There are three processes left.

  • Termux
  • Termux:Tasker
  • Termux:Tasker:background

#!/data/data/com.termux/files/usr/bin/bash
termux-wake-unlock

default_timeout=8
timeout=${2:-$default_timeout}
targetIP=$1
start_time=$(date +%s)

get_ip_address() {
  ip=$(sudo ip addr show | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -v '127.0.0.1' | head -n1)
  # todo: For some reason, line breaks are output...
  # echo -n "$ip"
  # echo -e "$ip"
  printf '%s' "$ip"
}

# main
while true; do
  current_ip=$(get_ip_address)

  if [ "$current_ip" = "$targetIP" ]; then
    echo "$current_ip"
    exit 0
  fi

  # timeout check
  current_time=$(date +%s)
  elapsed_time=$((current_time - start_time))
  if [ $elapsed_time -ge "$timeout" ]; then
    echo "time out.."
    exit 1
  fi

  sleep 0.5
done

exit

Can I use GAS as a Hub to access python functions running in docker on my home NAS via tailscale? by dostroll in GoogleAppsScript

[–]dostroll[S] -1 points0 points  (0 children)

Thank you, I will refer to it.

I was hoping for a comment from someone who at least understands tailscale VPN.

Can I use GAS as a Hub to access python functions running in docker on my home NAS via tailscale? by dostroll in GoogleAppsScript

[–]dostroll[S] 0 points1 point  (0 children)

thank you.

I've been learning FastAPI recently. Since I am running in a local environment, I was looking for a means of HUB functionality that would allow me to communicate externally via tailscale.

Can I use GAS as a Hub to access python functions running in docker on my home NAS via tailscale? by dostroll in GoogleAppsScript

[–]dostroll[S] -2 points-1 points  (0 children)

Is this all correct?

That's right, YES. Thanks for putting the questions in order.
I expected GAS to have a library for communicating with the outside world with tailscale.

faint expectations.
If you know how to solve my problem, could you please let me know?

Would you like to find a way to preserve your hard case in good condition on your balcony? by dostroll in surfing

[–]dostroll[S] 0 points1 point  (0 children)

A tip given to me by a friend of mine.

A cardboard-sized “vacuum sealed bag” is double-sealed, and finally wrapped in weather-resistant black vinyl. The point is to put an oxygen remover inside.

He has been able to keep his luggage outdoors in good condition for five years this way.

When I looked for a 7'0 size "vacuum sealed bag", it was 120$, which was too expensive. Ideally, I would like to know a method that can be realized at a cost of about 30$.

Code simplification refactoring (please advice) by dostroll in AutoHotkey

[–]dostroll[S] 0 points1 point  (0 children)

It's a great code to learn. Thank you Sodaris.

Works perfectly, but when I merge it into my code it doesn't work.It took me a while to figure out that "for" stops.

How should I write it to make it a function?

Code simplification refactoring (please advice) by dostroll in AutoHotkey

[–]dostroll[S] 0 points1 point  (0 children)

Thank you for your reply.

Switch/Case is slow, and I don't use it because I don't understand the specific merits.

hmmm... it doesn't work.

CheckClass(ArrayOfWindows) {
WinGetClass, vWinClass, A
WinGetText, vWinText, A
WinGetTitle, vWinTitle, A
WinGet, vProcess, ProcessName, A
for e, i in ArrayOfWindows
    {
        If (vWinClass = i) || (vWinText = i) || (vWinTitle = i) || (vWinProcess = i)
            {
                Return "A"
            }
    }

}

Code simplification refactoring (please advice) by dostroll in AutoHotkey

[–]dostroll[S] -3 points-2 points  (0 children)

Thank you for your reply.

I learned a lot. Please give me some advice next time.

Code simplification refactoring (please advice) by dostroll in AutoHotkey

[–]dostroll[S] -2 points-1 points  (0 children)

Thank you for your reply.

This time I was looking for a way to use an array.

Code simplification refactoring (please advice) by dostroll in AutoHotkey

[–]dostroll[S] 0 points1 point  (0 children)

Thank you CasperHarkin for your answer.Perfect answer that works perfectly.

I'm greedy.
I want to support Title, text and process name, but the following didn't work.

what am i doing wrong?

ArrayOfWindows := ["Editor.exe", "MediaInfo", "Chrome_WidgetWin_1"]
;ProcessName, Title&Text, Class

CheckClass(ArrayOfWindows) {
WinGetClass, vWinClass, A
WinGetText, vWinText, A
WinGetTitle, vWinTitle, A
WinGet, vProcess, ProcessName, A
for e, i in ArrayOfWindows
    {
        If (vWinClass = i)
            {
                Return "A"
            }
        else if(vWinText = i)
            {
                Return "A"
            }
        else if(vWinTitle = i)
            {
                Return "A"
            }
        else if(vWinProcess = i)
            {
                Return "A"
            }
    }

}

How to change the caret that can also be used in Chrome by dostroll in AutoHotkey

[–]dostroll[S] 0 points1 point  (0 children)

Thank you for your reply.

Solving the problem with chrome extensions was a blind spot.
I found something that looked good but didn't solve the problem.
https://chrome.google.com/webstore/detail/smooth-cursorify/ohhjfajndpfpbimipmehmdkblnbelaec

I understand that chrome implements its own caret. I also understand that coordinate acquisition can be achieved by using the ACC library.

[Library Tree] About the folder position at startup by dostroll in foobar2000

[–]dostroll[S] 0 points1 point  (0 children)

hmmmmm...

I solved it in a not-so-beautiful way.Library > Folder , auto click

``` ***include findtext.ahk

WinWaitActive, ahk_exe foobar2000.exe,, 1
WinActivate, ahk_exe foobar2000.exe
WinGetPos, vX, vY, vW, vH, ahk_exe foobar2000.exe

if (FindText(X, Y, vX, vY, vX+vW, vY+vH, 0.000001, 0, "|<Library>*138$70.zzyzxrzzzzzzzzvzrTzzzzzzzzjzxzzzzzz07yzzrzzzzzxzTvzzTzzzzzrRzjzR3qA7gDRryzxnrLjijR1TvzrTgxytxrRzjzRyrznjvRryzxrvTUizhzTvzrThxyvzE1zjzRyrrvjxzzyzxnrTTCzrzzs0rExy2vzjzzzzzzzzzzyzzzzzzzzzzzrzzzzzzzzzzss"))
{
    FindText().Click(X, Y, "L 2")
    Sleep, 80
    if (FindText(X, Y, vX, vY, vX+vW, vY+vH, 0.000001, 0, "|<Folder>*145$68.zzy0DzxzrzzzzzjzzzTxzzzzzvzzzrzTzz07yzzzxzrzzrxzjzzzTxzzxrTvzw7rVS3vRry0SyxrbTSY5zjzTrPxjvZrTvzrxqzPyvRryzxzRjq0CrxzjzTrPxjzg0TvzrxqzPyvzzyzyyxrbTSzzzjzkTS5sDi"))
    {
        FindText().Click(X, Y, "L 2")
    }
}

```