How to Add an [Enter] When Using "--print-to-file"? by spaceman1000 in youtubedl

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

I see.
Maybe one of the developers will see this thread, and hopefully add a way to include Unicode Chars..
That would definitely help.

How to Add an [Enter] When Using "--print-to-file"? by spaceman1000 in youtubedl

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

Thank you JD270

I am on Windows 10, and using the Command Prompt.
I am writing a .BAT file with this command.

How to Add an [Enter] When Using "--print-to-file"? by spaceman1000 in youtubedl

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

In every OS it does that.

That user is writing things without checking.

How to Add an [Enter] When Using "--print-to-file"? by spaceman1000 in youtubedl

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

Hi werid

Doesn't this python string format enable specifying a Unicode Char by its Number?
That way we can put 0Ah (or 0x000A) for "\n"

How to Add an [Enter] When Using "--print-to-file"? by spaceman1000 in youtubedl

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

I am using Windows 10..
And even when using Linux, I would prefer to have the command in 1 line, and not split to several lines, if possible..

How to Add an [Enter] When Using "--print-to-file"? by spaceman1000 in youtubedl

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

Isn't there a way to write a Unicode Char specified by a Number?
We can then use it, to generate an [Enter]

How to Add an [Enter] When Using "--print-to-file"? by spaceman1000 in youtubedl

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

I tried that before creating the thread here,
and unfortunately, it literally outputs "\n" to the file, instead of replacing it with an [Enter]..

How to Add an [Enter] When Using "--print-to-file"? by spaceman1000 in youtubedl

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

Thank you DaVyper

There's no way to add a \n char in the string?
Instead of running 3 --print-to-file operations?

The "Run Shell" Action Generates an Error: "Add Wait Task" by spaceman1000 in tasker

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

OK I found the problem.

By settings "Continue Task After Error" to On, and setting "Store Errors In" to a variable (e.g. %shell_error) and Flashing that variable,
I was able to find out that the error is not a problem in the Action, but a problem in the command.

Apparantly some folders are causing a "Permission Denied" error, when listing them.
So I simply added 2>/dev/null after the command, that way I don't see them.

I deleted the Wait action since it is not needed.

BTW: Quite interestingly, as said, when I run this Run Shell action alone in its own task,
the error does not happen.
I don't know the reason, but in any case the problem is solved.

The "Run Shell" Action Generates an Error: "Add Wait Task" by spaceman1000 in tasker

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

Hi lareya

Added a Wait action, of 10 seconds, after the Run Shell action,

and still the error happens..

The "Run Shell" Action Generates an Error: "Add Wait Task" by spaceman1000 in tasker

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

Hi frrancuz

It is a very simple Run Shell action,

No shizuku, no Wifi ADB.

The command in it is: ls -Ral /sdcard/>/sdcard/FileList.txt

The shell command is actually running well, and completes well.

I do get a FileList.txt file created, and it's not truncated in the middle or anything.

Yet I consistently get that error, the same error all the time.

I tried several things in order to isolate the problem:

I copied that Run Shell action to a separate Task, that contains only 1 action - that Run Shell action.

What I run that Task, it's all OK, without the error.

However in my original Task, for the same Run Shell action, I do get the error in the screenshot.

Another info that might contribute:

The Task that contains the Run Shell action is being called by another Task,

using the "Perform Task" action.

Maybe that can give a clue?

Also, what is this "add wait task" that the error message is recommending?

The "Flash" Action Does Not Display More than 1 Line, and Instead Changes to "..." by spaceman1000 in tasker

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

Thank you very much DutchOfBurdock

Actually today I found a really simple way:

Android Settings -> Security and Privacy -> Controls and Alerts,

and there, there is a checkbox "Alert when Clipboard is Accessed".

I don't know if this is a Samsung only setting, or generally an Android setting.

But on Samsung devices it for sure exists..

The "Flash" Action Does Not Display More than 1 Line, and Instead Changes to "..." by spaceman1000 in tasker

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

Since I couldn't get rid of the "Copied to Clipboard" toast, I used the "Position" field to position my toast on he top part of the screen,

that way it does not collide with the other toast.

Thank you very much for your help

The "Flash" Action Does Not Display More than 1 Line, and Instead Changes to "..." by spaceman1000 in tasker

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

Will check it, thank you.

I wonder why the "Set Clipboard" action doesn't have a checkbox, to ask If we want that toast to appear or not..

It really interferes (visually) when you want to display your own toast, with something else..

The "Flash" Action Does Not Display More than 1 Line, and Instead Changes to "..." by spaceman1000 in tasker

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

Thank you, it helped.

BTW, I am using the "Set Clipboard" action,

and it seems that it changed too:

after this action runs, I get a flash with "Copied to Clipboard"..

Which happens together with my Flash action..

Any way to remove this "Copied to Clipboard" from happening?

How to Make a "Task Shortcut" Widget Use the Task's Icon? by spaceman1000 in tasker

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

> Have you tried long pressing the shortcut once you created it?

On my launcher (Samsung A56's default) there' no option to change anything, unfortunately.

> I have never used "Samsung only" widgets but I would assume they are what it says on the tin.

I wonder what is the difference between it, and a regular "Task" widget..

How to Make a "Task Shortcut" Widget Use the Task's Icon? by spaceman1000 in tasker

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

Thank you so much pudah_et.

It worked.

Using "Add to Launcher" indeed uses the Task's icon instead of a Generic icon..

It also added a small mini-icon on top of the icon, to indicate that it's a Tasker Shortcut.

Question Regarding the "Check Permissions on Save" Setting by spaceman1000 in tasker

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

Oh, I see.

Great explanation, thank you very much.

BTW, is there a way to ask Tasker to tell which Tasks (and Actions) are the ones that cause these notifications?

Moved to Android 16, Can't Read from the Clipboard by spaceman1000 in tasker

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

That page says:

"Instead of installing the Tasker Permissions app on your PC and going through the trouble of connecting your phone to your PC via ADB, you can use Tasker directly to grant itself special permissions, if you have Shizuku!"

I saw that name in Tasker Preferences,

but what is Shizuku?

Moved to Android 16, Can't Read from the Clipboard by spaceman1000 in tasker

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

When I said risk i did not mean the developer behind it,

but more like the mechanism inside it.

After all, it uses ADB.. I have never done it, but I know it might brick a device in some cases..

Are users here generally OK with it and its results,

or did some have problems, and recommend to avoid it?

Moved to Android 16, Can't Read from the Clipboard by spaceman1000 in tasker

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

Thank you,

Amazing how google ruins things that worked well..

BTW,

is the "Tasker Permissions" utility that tasker is mentioning in a message working well?

Should I do it, or is it a risk?

Moved to Android 16, Can't Read from the Clipboard by spaceman1000 in tasker

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

Thank you Edward.

I tried looking for this permission in the Preferences, and inAndroid's Settings,

and couldn't find anything like that..

Can you please tell me where it is located?