BKSalman / ytdlp-gui

a very simple GUI for ytdlp written in Rust
GNU General Public License v3.0
247 stars 14 forks source link

Start with Download Link Text field focused #35

Open megabugman opened 1 day ago

megabugman commented 1 day ago

Hey,

I would like to automate the user interface, but it is not easy as no standard Windows controls are used. Since the tab key is not supported, I would appreciate if you could add an option or have the edit box focused as default when starting the app, so that I only have to press the key combination Ctrl + V to download faster:

image

It would also be helpful if the controls supported the tab key. Pressing the tab key would focus the next control element to enable automation.

BKSalman commented 1 day ago

if you want that to happen so you can download multiple videos at the same time you can just paste all of them separated by space into the text box.

If that's not what you need please elaborate more.

megabugman commented 1 day ago

Not exactly. I want to automate the Download. ATM, I need to do all the steps manually. enhance

I cam automate the program start, but as tab is not supported (and/or the text box is not focused) I cannot paste the link. I need to manually click on the text box. Then I can paste the Link. Then I need to move the mouse over the download button and click. I want to automate pressing a few times tab instead until the download button is active, then automate a return key.

BKSalman commented 1 day ago

Why not just make a script that uses yt-dlp directly?

megabugman commented 1 day ago

Good point. 👍 I found some working scripts, but I guess I like your UI with the progressbar. Feel free to close this, if this is another iced issue or you don't want to add such feature.

BKSalman commented 17 hours ago

I found some working scripts, but I guess I like your UI with the progressbar.

Doesn't yt-dlp already show a progress bar? Or you just like my application's UI?

Feel free to close this, if this is another iced issue or you don't want to add such feature.

If it's possible I don't mind doing it, I will check that out

megabugman commented 17 hours ago

yt-dlp is a CLI, runs in command prompt. I like your UI, for it's simplicity. Unfortunately, the frame work you're using has no windows standard controls and hence it's difficult to automate properly.

If possible consider adding accelerator keys to the buttons like e.g. ctrl+d for download button, also for toggling the audio / video setting and Esc to close Windows/Main Application. This might be helpful for others.

Maybe you want to have only one Window, instead of two, ATM one has to click quite too often after each video download: image

As a work-around for the missing context menu, I have automated it, so I can keep my hand on the mouse:

`#Requires AutoHotkey v2.0

SingleInstance Off

Run "D:\ytdlp-gui.exe",,,&PID ?? 0

HotIf WinActive("ahk_exe ytdlp-gui.exe")

RButton::Send('^v') ; Send Ctrl+V

HotIf

ProcessWaitClose(PID) ExitApp `

BKSalman commented 5 hours ago

If possible consider adding accelerator keys to the buttons like e.g. ctrl+d for download button, also for toggling the audio / video setting and Esc to close Windows/Main Application. This might be helpful for others.

That's not a bad idea, I could add keyboard shortcuts

Maybe you want to have only one Window, instead of two, ATM one has to click quite too often after each video download:

image

Will look into changing the ui to something better, but this is missing a download cancellation button

Thanks for the suggestions