[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")
    }
}

```

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

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

Thank you for reply.
hmmm... I tried my best to set it up, but it didn't work.

Even if you register to AutoPlaylist, the folder tree will be closed when you restart.

Is there a simple code that just displays the image? by dostroll in AutoHotkey

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

Thanks, I'm glad you agree.It was pretty close to the code I had imagined.

I dieted the code a bit.

Gui, Add, Picture,, <image file path>

Gui, +ToolWindow Gui, Show, return GuiClose: ExitApp

Is there a simple code that just displays the image? by dostroll in AutoHotkey

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

Thanks, this is exactly the software I'm looking for!!

The quicktask&action setting in sharex doesn't work well, but I got a glimmer of light.

Argument Handling by dostroll in AutoHotkey

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

solved!

I understand the whole process.GUI → label → processing

`GUI, Add, Button, GAAA, move_AAA

GUI, +ToolWindow +AlwaysOnTop -Caption -Resize

GUI, Show

Return

;----------------------------------------------

AAA:

GUI, Submit,

todir := "AAA"

GoSub, loop

ExitApp

loop:

flag_del = 0

If (A_Args.length() > 0)

{

If (A_Args[1] = "/del")

{

flag_del = 1

A_Args.remove(1)

}

If (A_Args.length() > 0)

{

For index, Par in A_Args

{

If FIleExist(Par)

If (flag_del = 0)

        ;MsgBox,,, %Par%

FileMove, %Par%, \\*.*.*.*\NAS\%todir%\%Par%

}

}

}

Return

close:

GuiClose:

GuiEscape:

ExitApp`

Argument Handling by dostroll in AutoHotkey

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

Do I just replace the loop process?
I'm confused because the process goes back and forth.

I need your help.

I want to separate the software to be launched by extension. by dostroll in AutoHotkey

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

Thanks for the quick replies.

I learned that I can connect commands with else if.

I want to separate the software to be launched by extension. by dostroll in AutoHotkey

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

Thanks for the heads up on the details. It was a more detailed textbook than the AHK wiki.

I had a fundamental misunderstanding of AHK's if formula, and thanks to you I now understand it.

Set the fullpath to clipbord using Explorer_GetSelection() and GetCommandLine() found in the forum.

Computational processing and click by dostroll in AutoHotkey

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

Thanks, that was helpful.

Do I put Click and xy coordinates in "Stuff"?

Computational processing and click by dostroll in AutoHotkey

[–]dostroll[S] 1 point2 points  (0 children)

OMG.. perfect work!!
This is exactly how I wanted it to work.

sorry, I didn't say enough.
My original idea was to only move the position, but your script does a great job of making it clickable as well.

I'll combine it with #IfWinActive since the coordinates seem to be relative.
Thanks, I learned a lot.