Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start with Download Link Text field focused #35

Open
megabugman opened this issue Sep 23, 2024 · 8 comments
Open

Start with Download Link Text field focused #35

megabugman opened this issue Sep 23, 2024 · 8 comments

Comments

@megabugman
Copy link

megabugman commented Sep 23, 2024

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
Copy link
Owner

BKSalman commented Sep 23, 2024

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
Copy link
Author

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
Copy link
Owner

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

@megabugman
Copy link
Author

megabugman commented Sep 23, 2024

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
Copy link
Owner

BKSalman commented Sep 24, 2024

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
Copy link
Author

megabugman commented Sep 24, 2024

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
Copy link
Owner

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

@megabugman
Copy link
Author

megabugman commented Sep 25, 2024

Correct. Cancel is missing. You could add a small X inside or next to the progress bar without overloading the user interface.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants